Commit Graph

12 Commits (b8e7eee8372f927a5a3b51e95db3707d34c4ac4b)

Author SHA1 Message Date
Matt Jankowski b48f2cbc8b Catch error when server decryption fails on 2FA ()
Patrick Figel df4ff9a8e1 Add recovery code support for two-factor auth ()
* 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  and fixes 

* Set OTP_SECRET in test enviroment

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