]> cat aescling's git repositories - mastodon.git/commit
Add e-mail-based sign in challenge for users with disabled 2FA (#14013)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 9 Jun 2020 08:23:06 +0000 (10:23 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2020 08:23:06 +0000 (10:23 +0200)
commit72a7cfaa395bbddabd0f0a712165fd7babf5d58c
treeb983e24cda49dfaae2a08ef7193af1424e6b8f9b
parent8b6d97fb7cc80321834f95bdee56e31676e1cff6
Add e-mail-based sign in challenge for users with disabled 2FA (#14013)
14 files changed:
app/controllers/auth/sessions_controller.rb
app/controllers/concerns/sign_in_token_authentication_concern.rb [new file with mode: 0644]
app/controllers/concerns/two_factor_authentication_concern.rb [new file with mode: 0644]
app/mailers/user_mailer.rb
app/models/user.rb
app/views/auth/sessions/sign_in_token.html.haml [new file with mode: 0644]
app/views/user_mailer/sign_in_token.html.haml [new file with mode: 0644]
app/views/user_mailer/sign_in_token.text.erb [new file with mode: 0644]
config/locales/en.yml
config/locales/simple_form.en.yml
db/migrate/20200608113046_add_sign_in_token_to_users.rb [new file with mode: 0644]
db/schema.rb
spec/controllers/auth/sessions_controller_spec.rb
spec/mailers/previews/user_mailer_preview.rb