class Api::Users::Logins::Index
- Api::Users::Logins::Index
- PublicApi
- Lucky::Action
- Reference
- Object
Included Modules
- Shield::Api::Users::Logins::Index
Defined in:
actions/api/users/logins/index.crConstant Summary
-
AFTER_PIPES =
[set_previous_page_url] of Symbol
-
BEFORE_PIPES =
[verify_accepted_format, disable_caching, require_logged_in, require_logged_out, pin_login_to_ip_address, enforce_login_idle_timeout, check_authorization] of Symbol
-
EXPOSURES =
[] of Symbol
-
PARAM_DECLARATIONS =
[page : Int32 = 1] of Crystal::Macros::TypeDeclaration
-
ROUTE_SETTINGS =
{prefix: "/api/v0"}
-
SKIPPED_PIPES =
[pin_login_to_ip_address, require_logged_out] of Symbol
Class Method Summary
- .path(*args, **named_args) : String
- .path_without_query_params(user_id) : String
- .route(user_id, page = nil, anchor : String | Nil = nil) : Lucky::RouteHelper
- .url(*args, **named_args) : String
- .url_without_query_params(user_id) : String
- .with(user_id, page = nil, anchor : String | Nil = nil) : Lucky::RouteHelper
Instance Method Summary
Instance methods inherited from class PublicApi
authorize?(user : User) : Boolauthorize?(user : Shield::User) : Bool authorize?, bearer_logged_in? : Bool bearer_logged_in?, bearer_logged_out? : Bool bearer_logged_out?, bearer_scope : String bearer_scope, check_authorization check_authorization, current_bearer : User current_bearer, current_bearer? : User | Nil current_bearer?, current_bearer_login current_bearer_login, current_bearer_login? : BearerLogin | Nil current_bearer_login?, current_login current_login, current_login? : Login | Nil current_login?, current_user current_user, current_user? : User | Nil current_user?, current_user_or_bearer : User current_user_or_bearer, current_user_or_bearer? : User | Nil current_user_or_bearer?, disable_caching disable_caching, do_check_authorization_failed do_check_authorization_failed, do_enforce_login_idle_timeout_failed do_enforce_login_idle_timeout_failed, do_pin_email_confirmation_to_ip_address_failed do_pin_email_confirmation_to_ip_address_failed, do_pin_login_to_ip_address_failed do_pin_login_to_ip_address_failed, do_pin_password_reset_to_ip_address_failed do_pin_password_reset_to_ip_address_failed, do_require_logged_in_failed do_require_logged_in_failed, do_require_logged_out_failed do_require_logged_out_failed, enforce_login_idle_timeout enforce_login_idle_timeout, logged_in? : Bool logged_in?, logged_out? : Bool logged_out?, pin_email_confirmation_to_ip_address pin_email_confirmation_to_ip_address, pin_login_to_ip_address pin_login_to_ip_address, pin_password_reset_to_ip_address pin_password_reset_to_ip_address, previous_page_url previous_page_url, previous_page_url? : String | Nil previous_page_url?, redirect_back(*, fallback : Lucky::Action.class, status : HTTP::Status, allow_external = false)
redirect_back(*, fallback : Lucky::RouteHelper, status : HTTP::Status, allow_external = false)
redirect_back(*, fallback : String, status : Int32 = 302, allow_external : Bool = false) redirect_back, remote_ip : Socket::IPAddress remote_ip, remote_ip? : Socket::IPAddress | Nil remote_ip?, require_logged_in require_logged_in, require_logged_out require_logged_out, return_url return_url, return_url? : String | Nil return_url?, set_no_referrer_policy set_no_referrer_policy, set_previous_page_url set_previous_page_url