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/discourse/controllers/preferences
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
..
about.js.es6 Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
account.js.es6 Extensibility points for user/preferences 2018-01-02 15:46:32 -05:00
badge-title.js.es6 FIX: Unable to remove existing user title (#5386) 2017-11-30 15:54:38 +01:00
card-badge.js.es6 Fixes some Ember Deprecations for 1.13: 2016-10-21 11:06:07 -04:00
categories.js.es6 FIX: do not display used categories as selectable in categories notifications preferences 2017-12-14 14:40:08 +01:00
email.js.es6 FIX: Don't allow invalid email to be saved. 2016-12-21 17:47:11 +08:00
emails.js.es6 Remove daily mailing mode option as it doesn't scale. 2017-05-05 12:21:50 +08:00
interface.js.es6 FIX: Order the homepage box in the same order as the top menu 2018-02-02 16:11:28 -05:00
notifications.js.es6 FIX: do not display used categories as selectable in categories notifications preferences 2017-12-14 14:40:08 +01:00
profile.js.es6 FIX: deleting own post results in error 2017-07-28 10:14:11 -04:00
second-factor.js.es6 FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
tags.js.es6 FEATURE: rebuild user preferences page to use tabs 2017-05-02 16:52:18 -04:00
username.js.es6 FIX: Better error message when username change fails. 2017-06-07 10:45:53 +09:00