Module: Booth::Userland
- Defined in:
- lib/booth/userland.rb,
lib/booth/userland/otps/edit.rb,
lib/booth/userland/otps/show.rb,
lib/booth/userland/otps/sudo.rb,
lib/booth/userland/logins/new.rb,
lib/booth/userland/otps/update.rb,
lib/booth/userland/otps/destroy.rb,
lib/booth/userland/webauths/new.rb,
lib/booth/userland/logins/create.rb,
lib/booth/userland/sessions/show.rb,
lib/booth/userland/webauths/sudo.rb,
lib/booth/userland/logins/destroy.rb,
lib/booth/userland/passwords/edit.rb,
lib/booth/userland/passwords/show.rb,
lib/booth/userland/passwords/sudo.rb,
lib/booth/userland/recoveries/new.rb,
lib/booth/userland/sessions/index.rb,
lib/booth/userland/webauths/index.rb,
lib/booth/userland/webauths/create.rb,
lib/booth/userland/onboardings/show.rb,
lib/booth/userland/otps/guards/sudo.rb,
lib/booth/userland/passwords/remove.rb,
lib/booth/userland/passwords/update.rb,
lib/booth/userland/webauths/destroy.rb,
lib/booth/userland/passwords/destroy.rb,
lib/booth/userland/recoveries/create.rb,
lib/booth/userland/registrations/new.rb,
lib/booth/userland/onboardings/update.rb,
lib/booth/userland/password_resets/new.rb,
lib/booth/userland/password_resets/show.rb,
lib/booth/userland/registrations/create.rb,
lib/booth/userland/webauths/guards/sudo.rb,
lib/booth/userland/passwords/guards/sudo.rb,
lib/booth/userland/extract_flash_messages.rb,
lib/booth/userland/otps/guards/manageable.rb,
lib/booth/userland/password_resets/create.rb,
lib/booth/userland/password_resets/update.rb,
lib/booth/userland/personal_contests/show.rb,
lib/booth/userland/personal_contests/update.rb,
lib/booth/userland/passwords/guards/removable.rb,
lib/booth/userland/webauths/guards/manageable.rb,
lib/booth/userland/passwords/guards/manageable.rb,
lib/booth/userland/otps/transitions/update/reset.rb,
lib/booth/userland/sessions/destroy_one_or_other.rb,
lib/booth/userland/logins/transitions/new/fallible.rb,
lib/booth/userland/otps/transitions/update/confirm.rb,
lib/booth/userland/logins/transitions/new/timed_out.rb,
lib/booth/userland/otps/transitions/update/register.rb,
lib/booth/userland/password_resets/guards/logged_out.rb,
lib/booth/userland/passwords/transitions/remove/step.rb,
lib/booth/userland/webauths/transitions/create/reset.rb,
lib/booth/userland/logins/transitions/new/mode_first_time.rb,
lib/booth/userland/sessions/transitions/show/enter_webauth.rb,
lib/booth/userland/logins/transitions/new/already_logged_in.rb,
lib/booth/userland/onboardings/transitions/update/reset_otp.rb,
lib/booth/userland/logins/transitions/new/no_username_chosen.rb,
lib/booth/userland/onboardings/transitions/update/choose_mode.rb,
lib/booth/userland/onboardings/transitions/update/confirm_otp.rb,
lib/booth/userland/sessions/transitions/destroy/enter_webauth.rb,
lib/booth/userland/onboardings/transitions/update/register_otp.rb,
lib/booth/userland/sessions/transitions/destroy/enter_password.rb,
lib/booth/userland/webauths/transitions/create/choose_nickname.rb,
lib/booth/userland/onboardings/transitions/update/reset_webauth.rb,
lib/booth/userland/passwords/transitions/update/choose_password.rb,
lib/booth/userland/sessions/transitions/destroy/verify_password.rb,
lib/booth/userland/onboardings/transitions/update/reset_password.rb,
lib/booth/userland/passwords/transitions/update/confirm_password.rb,
lib/booth/userland/onboardings/transitions/update/choose_password.rb,
lib/booth/userland/logins/transitions/new/remote_session_available.rb,
lib/booth/userland/onboardings/transitions/update/confirm_password.rb,
lib/booth/userland/logins/transitions/new/mode_username_and_webauth.rb,
lib/booth/userland/logins/transitions/new/mode_username_and_password.rb,
lib/booth/userland/password_resets/transitions/update/reset_password.rb,
lib/booth/userland/password_resets/transitions/update/choose_password.rb,
lib/booth/userland/password_resets/transitions/update/confirm_password.rb,
lib/booth/userland/webauths/transitions/create/registration_initiation.rb,
lib/booth/userland/webauths/transitions/sudo/authentication_initiation.rb,
lib/booth/userland/logins/transitions/new/mode_username_password_and_otp.rb,
lib/booth/userland/webauths/transitions/create/authentication_initiation.rb,
lib/booth/userland/webauths/transitions/create/registration_verification.rb,
lib/booth/userland/webauths/transitions/sudo/authentication_verification.rb,
lib/booth/userland/onboardings/transitions/update/choose_webauth_nickname.rb,
lib/booth/userland/webauths/transitions/create/authentication_verification.rb,
lib/booth/userland/logins/transitions/new/mode_username_password_and_webauth.rb,
lib/booth/userland/onboardings/transitions/update/webauth_registration_initiation.rb,
lib/booth/userland/sessions/transitions/destroy/webauth_authentication_initiation.rb,
lib/booth/userland/onboardings/transitions/update/webauth_authentication_initiation.rb,
lib/booth/userland/onboardings/transitions/update/webauth_registration_verification.rb,
lib/booth/userland/sessions/transitions/destroy/webauth_authentication_verification.rb,
lib/booth/userland/onboardings/transitions/update/webauth_authentication_verification.rb
Defined Under Namespace
Modules: Logins, Onboardings, Otps, PasswordResets, Passwords, PersonalContests, Recoveries, Registrations, Sessions, Webauths Classes: ExtractFlashMessages
Class Method Summary collapse
- .create_login ⇒ Object
- .create_password_reset ⇒ Object
- .create_recovery ⇒ Object
- .create_registration ⇒ Object
- .create_webauth ⇒ Object
- .destroy_all_other_sessions ⇒ Object
- .destroy_login ⇒ Object
- .destroy_otp ⇒ Object
- .destroy_password ⇒ Object
- .destroy_session ⇒ Object
- .destroy_webauth ⇒ Object
- .edit_otp ⇒ Object
- .edit_password ⇒ Object
-
.extract_flash_messages ⇒ Object
General Helpers.
-
.index_sessions ⇒ Object
Session Actions.
-
.index_webauth ⇒ Object
Webauth Actions.
-
.new_login ⇒ Object
————- Login Actions ————-.
-
.new_password_reset ⇒ Object
Password Reset Actions.
-
.new_recovery ⇒ Object
Recovery Actions.
-
.new_registration ⇒ Object
Registration Actions.
- .new_webauth ⇒ Object
- .other_sessions? ⇒ Boolean
-
.remove_password ⇒ Object
GET ‘remove` is paired with POST `destroy“.
- .routes ⇒ Object
-
.show_onboarding ⇒ Object
—————— Onboarding Actions ——————.
-
.show_otp ⇒ Object
Otp Actions.
-
.show_password ⇒ Object
Password Actions.
- .show_password_reset ⇒ Object
-
.show_personal_contest ⇒ Object
Personal Contest Actions.
- .show_session ⇒ Object
- .sudo_otp ⇒ Object
- .sudo_password ⇒ Object
- .sudo_webauth ⇒ Object
- .update_onboarding ⇒ Object
- .update_otp ⇒ Object
- .update_password ⇒ Object
- .update_password_reset ⇒ Object
- .update_personal_contest ⇒ Object
Class Method Details
.create_login ⇒ Object
15 16 17 |
# File 'lib/booth/userland.rb', line 15 def self.create_login(...) ::Booth::Userland::Logins::Create.call(...) end |
.create_password_reset ⇒ Object
132 133 134 |
# File 'lib/booth/userland.rb', line 132 def self.create_password_reset(...) ::Booth::Userland::PasswordResets::Create.call(...) end |
.create_recovery ⇒ Object
150 151 152 |
# File 'lib/booth/userland.rb', line 150 def self.create_recovery(...) ::Booth::Userland::Recoveries::Create.call(...) end |
.create_registration ⇒ Object
160 161 162 |
# File 'lib/booth/userland.rb', line 160 def self.create_registration(...) ::Booth::Userland::Registrations::Create.call(...) end |
.create_webauth ⇒ Object
98 99 100 |
# File 'lib/booth/userland.rb', line 98 def self.create_webauth(...) ::Booth::Userland::Webauths::Create.call(...) end |
.destroy_all_other_sessions ⇒ Object
182 183 184 |
# File 'lib/booth/userland.rb', line 182 def self.destroy_all_other_sessions(...) ::Booth::Userland::Sessions::DestroyOneOrOther.call(...) end |
.destroy_login ⇒ Object
19 20 21 |
# File 'lib/booth/userland.rb', line 19 def self.destroy_login(...) ::Booth::Userland::Logins::Destroy.call(...) end |
.destroy_otp ⇒ Object
53 54 55 |
# File 'lib/booth/userland.rb', line 53 def self.destroy_otp(...) ::Booth::Userland::Otps::Destroy.call(...) end |
.destroy_password ⇒ Object
80 81 82 |
# File 'lib/booth/userland.rb', line 80 def self.destroy_password(...) ::Booth::Userland::Passwords::Destroy.call(...) end |
.destroy_session ⇒ Object
178 179 180 |
# File 'lib/booth/userland.rb', line 178 def self.destroy_session(...) ::Booth::Userland::Sessions::DestroyOneOrOther.call(...) end |
.destroy_webauth ⇒ Object
102 103 104 |
# File 'lib/booth/userland.rb', line 102 def self.destroy_webauth(...) ::Booth::Userland::Webauths::Destroy.call(...) end |
.edit_otp ⇒ Object
45 46 47 |
# File 'lib/booth/userland.rb', line 45 def self.edit_otp(...) ::Booth::Userland::Otps::Edit.call(...) end |
.edit_password ⇒ Object
67 68 69 |
# File 'lib/booth/userland.rb', line 67 def self.edit_password(...) ::Booth::Userland::Passwords::Edit.call(...) end |
.extract_flash_messages ⇒ Object
General Helpers
188 189 190 |
# File 'lib/booth/userland.rb', line 188 def self.(...) ::Booth::Userland::ExtractFlashMessages.call(...) end |
.index_sessions ⇒ Object
Session Actions
166 167 168 |
# File 'lib/booth/userland.rb', line 166 def self.index_sessions(...) ::Booth::Userland::Sessions::Index.call(...) end |
.index_webauth ⇒ Object
Webauth Actions
86 87 88 |
# File 'lib/booth/userland.rb', line 86 def self.index_webauth(...) ::Booth::Userland::Webauths::Index.call(...) end |
.new_login ⇒ Object
Login Actions
11 12 13 |
# File 'lib/booth/userland.rb', line 11 def self.new_login(...) ::Booth::Userland::Logins::New.call(...) end |
.new_password_reset ⇒ Object
Password Reset Actions
128 129 130 |
# File 'lib/booth/userland.rb', line 128 def self.new_password_reset(...) ::Booth::Userland::PasswordResets::New.call(...) end |
.new_recovery ⇒ Object
Recovery Actions
146 147 148 |
# File 'lib/booth/userland.rb', line 146 def self.new_recovery(...) ::Booth::Userland::Recoveries::New.call(...) end |
.new_registration ⇒ Object
Registration Actions
156 157 158 |
# File 'lib/booth/userland.rb', line 156 def self.new_registration(...) ::Booth::Userland::Registrations::New.call(...) end |
.new_webauth ⇒ Object
94 95 96 |
# File 'lib/booth/userland.rb', line 94 def self.new_webauth(...) ::Booth::Userland::Webauths::New.call(...) end |
.other_sessions? ⇒ Boolean
170 171 172 |
# File 'lib/booth/userland.rb', line 170 def self.other_sessions?(...) index_sessions(...).reject(&:is_current).any? end |
.remove_password ⇒ Object
GET ‘remove` is paired with POST `destroy“.
76 77 78 |
# File 'lib/booth/userland.rb', line 76 def self.remove_password(...) ::Booth::Userland::Passwords::Remove.call(...) end |
.routes ⇒ Object
3 4 5 |
# File 'lib/booth/userland.rb', line 3 def self.routes(...) ::Booth::Routes::Userland.call(...) end |
.show_onboarding ⇒ Object
Onboarding Actions
27 28 29 |
# File 'lib/booth/userland.rb', line 27 def self.show_onboarding(...) ::Booth::Userland::Onboardings::Show.call(...) end |
.show_otp ⇒ Object
Otp Actions
37 38 39 |
# File 'lib/booth/userland.rb', line 37 def self.show_otp(...) ::Booth::Userland::Otps::Show.call(...) end |
.show_password ⇒ Object
Password Actions
59 60 61 |
# File 'lib/booth/userland.rb', line 59 def self.show_password(...) ::Booth::Userland::Passwords::Show.call(...) end |
.show_password_reset ⇒ Object
136 137 138 |
# File 'lib/booth/userland.rb', line 136 def self.show_password_reset(...) ::Booth::Userland::PasswordResets::Show.call(...) end |
.show_personal_contest ⇒ Object
Personal Contest Actions
118 119 120 |
# File 'lib/booth/userland.rb', line 118 def self.show_personal_contest(...) ::Booth::Userland::PersonalContests::Show.call(...) end |
.show_session ⇒ Object
174 175 176 |
# File 'lib/booth/userland.rb', line 174 def self.show_session(...) ::Booth::Userland::Sessions::Show.call(...) end |
.sudo_otp ⇒ Object
41 42 43 |
# File 'lib/booth/userland.rb', line 41 def self.sudo_otp(...) ::Booth::Userland::Otps::Sudo.call(...) end |
.sudo_password ⇒ Object
63 64 65 |
# File 'lib/booth/userland.rb', line 63 def self.sudo_password(...) ::Booth::Userland::Passwords::Sudo.call(...) end |
.sudo_webauth ⇒ Object
90 91 92 |
# File 'lib/booth/userland.rb', line 90 def self.sudo_webauth(...) ::Booth::Userland::Webauths::Sudo.call(...) end |
.update_onboarding ⇒ Object
31 32 33 |
# File 'lib/booth/userland.rb', line 31 def self.update_onboarding(...) ::Booth::Userland::Onboardings::Update.call(...) end |
.update_otp ⇒ Object
49 50 51 |
# File 'lib/booth/userland.rb', line 49 def self.update_otp(...) ::Booth::Userland::Otps::Update.call(...) end |
.update_password ⇒ Object
71 72 73 |
# File 'lib/booth/userland.rb', line 71 def self.update_password(...) ::Booth::Userland::Passwords::Update.call(...) end |
.update_password_reset ⇒ Object
140 141 142 |
# File 'lib/booth/userland.rb', line 140 def self.update_password_reset(...) ::Booth::Userland::PasswordResets::Update.call(...) end |
.update_personal_contest ⇒ Object
122 123 124 |
# File 'lib/booth/userland.rb', line 122 def self.update_personal_contest(...) ::Booth::Userland::PersonalContests::Update.call(...) end |