Commit Graph

9 Commits (f48cb3eb170314cba1938522c0da44af21d47e83)

Author SHA1 Message Date
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
Daijiro Wachi 4f781b17cc Use input type `number` for Two-factor code ()
Eugen Rochko 23b997ae55 Split 2FA login into two prompts
Eugen Rochko ba192f12e3 Added optional two-factor authentication
Eugen Rochko 3ce6ac0ce2 Adding some localizations
Eugen Rochko 159203a7bc Fix : Add aria-labels
Eugen Rochko 43df35213e Improving all forms
Eugen Rochko 9b195f5dd3 Add window titles to auth pages and about page, link sign up/login from about page
Eugen Rochko 6045b6cb18 Customizing devise views and controllers