Commit Graph

11 Commits (df4ff9a8e13d776e1670c232655db0275a353a0f)

Author SHA1 Message Date
Patrick Figel df4ff9a8e1 Add recovery code support for two-factor auth (#1773)
* Add recovery code support for two-factor auth

When users enable two-factor auth, the app now generates ten
single-use recovery codes. Users are encouraged to print the codes
and store them in a safe place.

The two-factor prompt during login now accepts both OTP codes and
recovery codes.

The two-factor settings UI allows users to regenerated lost
recovery codes. Users who have set up two-factor auth prior to
this feature being added can use it to generate recovery codes
for the first time.

Fixes #563 and fixes #987

* Set OTP_SECRET in test enviroment

* add missing .html to view file names
8 years ago
Eugen Rochko 23b997ae55 Split 2FA login into two prompts 9 years ago
Eugen Rochko ba192f12e3 Added optional two-factor authentication 9 years ago
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance 9 years ago
Eugen Rochko fc198a8b4c Adding e-mail confirmations 9 years ago
Eugen Rochko a0f85774c4 Redirect after sign in to previous page (unless it's a sign in/up/etc page) 9 years ago
Eugen Rochko 7e14eefc81 Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app
registration API
9 years ago
Eugen Rochko ff2cbc0753 Remember me enabled by default 10 years ago
Eugen Rochko da4b675aca Fix favourite handling in ProcessInteractionService 10 years ago
Eugen Rochko 43bb8a25e7 Remember user logins by default 10 years ago
Eugen Rochko 6045b6cb18 Customizing devise views and controllers 10 years ago