This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/admin
Jeff Wong f4f8a293e7 FEATURE: Implement 2factor login TOTP
implemented review items.

Blocking previous codes - valid 2-factor auth tokens can only be authenticated once/30 seconds.
I played with updating the “last used” any time the token was attempted but that seemed to be overkill, and frustrating as to why a token would fail.
Translatable texts.
Move second factor logic to a helper class.
Move second factor specific controller endpoints to its own controller.
Move serialization logic for 2-factor details in admin user views.
Add a login ember component for de-duplication
Fix up code formatting
Change verbiage of google authenticator

add controller tests:
second factor controller tests
change email tests
change password tests
admin login tests

add qunit tests - password reset, preferences

fix: check for 2factor on change email controller
fix: email controller - only show second factor errors on attempt
fix: check against 'true' to enable second factor.

Add modal for explaining what 2fa with links to Google Authenticator/FreeOTP

add two factor to email signin link

rate limit if second factor token present

add rate limiter test for second factor attempts
2018-02-21 09:04:07 +08:00
..
adapters FIX: Object.assign is not fully supported 2017-09-25 12:28:00 -04:00
components UX: Link post ids in staff action logs to the post 2018-02-13 15:59:10 -05:00
controllers FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
helpers Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
mixins Many enhancements to the flagging / suspending interface. 2018-02-01 17:13:02 -05:00
models FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
routes push updates to backups list to client 2018-01-31 12:05:06 +01:00
services Many enhancements to the flagging / suspending interface. 2018-02-01 17:13:02 -05:00
templates FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00