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

Class Method Details

.create_loginObject



15
16
17
# File 'lib/booth/userland.rb', line 15

def self.(...)
  ::Booth::Userland::Logins::Create.call(...)
end

.create_password_resetObject



132
133
134
# File 'lib/booth/userland.rb', line 132

def self.create_password_reset(...)
  ::Booth::Userland::PasswordResets::Create.call(...)
end

.create_recoveryObject



150
151
152
# File 'lib/booth/userland.rb', line 150

def self.create_recovery(...)
  ::Booth::Userland::Recoveries::Create.call(...)
end

.create_registrationObject



160
161
162
# File 'lib/booth/userland.rb', line 160

def self.create_registration(...)
  ::Booth::Userland::Registrations::Create.call(...)
end

.create_webauthObject



98
99
100
# File 'lib/booth/userland.rb', line 98

def self.create_webauth(...)
  ::Booth::Userland::Webauths::Create.call(...)
end

.destroy_all_other_sessionsObject



182
183
184
# File 'lib/booth/userland.rb', line 182

def self.destroy_all_other_sessions(...)
  ::Booth::Userland::Sessions::DestroyOneOrOther.call(...)
end

.destroy_loginObject



19
20
21
# File 'lib/booth/userland.rb', line 19

def self.(...)
  ::Booth::Userland::Logins::Destroy.call(...)
end

.destroy_otpObject



53
54
55
# File 'lib/booth/userland.rb', line 53

def self.destroy_otp(...)
  ::Booth::Userland::Otps::Destroy.call(...)
end

.destroy_passwordObject



80
81
82
# File 'lib/booth/userland.rb', line 80

def self.destroy_password(...)
  ::Booth::Userland::Passwords::Destroy.call(...)
end

.destroy_sessionObject



178
179
180
# File 'lib/booth/userland.rb', line 178

def self.destroy_session(...)
  ::Booth::Userland::Sessions::DestroyOneOrOther.call(...)
end

.destroy_webauthObject



102
103
104
# File 'lib/booth/userland.rb', line 102

def self.destroy_webauth(...)
  ::Booth::Userland::Webauths::Destroy.call(...)
end

.edit_otpObject



45
46
47
# File 'lib/booth/userland.rb', line 45

def self.edit_otp(...)
  ::Booth::Userland::Otps::Edit.call(...)
end

.edit_passwordObject



67
68
69
# File 'lib/booth/userland.rb', line 67

def self.edit_password(...)
  ::Booth::Userland::Passwords::Edit.call(...)
end

.extract_flash_messagesObject

General Helpers



188
189
190
# File 'lib/booth/userland.rb', line 188

def self.extract_flash_messages(...)
  ::Booth::Userland::ExtractFlashMessages.call(...)
end

.index_sessionsObject

Session Actions



166
167
168
# File 'lib/booth/userland.rb', line 166

def self.index_sessions(...)
  ::Booth::Userland::Sessions::Index.call(...)
end

.index_webauthObject

Webauth Actions



86
87
88
# File 'lib/booth/userland.rb', line 86

def self.index_webauth(...)
  ::Booth::Userland::Webauths::Index.call(...)
end

.new_loginObject


Login Actions




11
12
13
# File 'lib/booth/userland.rb', line 11

def self.(...)
  ::Booth::Userland::Logins::New.call(...)
end

.new_password_resetObject

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_recoveryObject

Recovery Actions



146
147
148
# File 'lib/booth/userland.rb', line 146

def self.new_recovery(...)
  ::Booth::Userland::Recoveries::New.call(...)
end

.new_registrationObject

Registration Actions



156
157
158
# File 'lib/booth/userland.rb', line 156

def self.new_registration(...)
  ::Booth::Userland::Registrations::New.call(...)
end

.new_webauthObject



94
95
96
# File 'lib/booth/userland.rb', line 94

def self.new_webauth(...)
  ::Booth::Userland::Webauths::New.call(...)
end

.other_sessions?Boolean

Returns:

  • (Boolean)


170
171
172
# File 'lib/booth/userland.rb', line 170

def self.other_sessions?(...)
  index_sessions(...).reject(&:is_current).any?
end

.remove_passwordObject

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

.routesObject



3
4
5
# File 'lib/booth/userland.rb', line 3

def self.routes(...)
  ::Booth::Routes::Userland.call(...)
end

.show_onboardingObject


Onboarding Actions




27
28
29
# File 'lib/booth/userland.rb', line 27

def self.show_onboarding(...)
  ::Booth::Userland::Onboardings::Show.call(...)
end

.show_otpObject

Otp Actions



37
38
39
# File 'lib/booth/userland.rb', line 37

def self.show_otp(...)
  ::Booth::Userland::Otps::Show.call(...)
end

.show_passwordObject

Password Actions



59
60
61
# File 'lib/booth/userland.rb', line 59

def self.show_password(...)
  ::Booth::Userland::Passwords::Show.call(...)
end

.show_password_resetObject



136
137
138
# File 'lib/booth/userland.rb', line 136

def self.show_password_reset(...)
  ::Booth::Userland::PasswordResets::Show.call(...)
end

.show_personal_contestObject

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_sessionObject



174
175
176
# File 'lib/booth/userland.rb', line 174

def self.show_session(...)
  ::Booth::Userland::Sessions::Show.call(...)
end

.sudo_otpObject



41
42
43
# File 'lib/booth/userland.rb', line 41

def self.sudo_otp(...)
  ::Booth::Userland::Otps::Sudo.call(...)
end

.sudo_passwordObject



63
64
65
# File 'lib/booth/userland.rb', line 63

def self.sudo_password(...)
  ::Booth::Userland::Passwords::Sudo.call(...)
end

.sudo_webauthObject



90
91
92
# File 'lib/booth/userland.rb', line 90

def self.sudo_webauth(...)
  ::Booth::Userland::Webauths::Sudo.call(...)
end

.update_onboardingObject



31
32
33
# File 'lib/booth/userland.rb', line 31

def self.update_onboarding(...)
  ::Booth::Userland::Onboardings::Update.call(...)
end

.update_otpObject



49
50
51
# File 'lib/booth/userland.rb', line 49

def self.update_otp(...)
  ::Booth::Userland::Otps::Update.call(...)
end

.update_passwordObject



71
72
73
# File 'lib/booth/userland.rb', line 71

def self.update_password(...)
  ::Booth::Userland::Passwords::Update.call(...)
end

.update_password_resetObject



140
141
142
# File 'lib/booth/userland.rb', line 140

def self.update_password_reset(...)
  ::Booth::Userland::PasswordResets::Update.call(...)
end

.update_personal_contestObject



122
123
124
# File 'lib/booth/userland.rb', line 122

def self.update_personal_contest(...)
  ::Booth::Userland::PersonalContests::Update.call(...)
end