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
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 FEATURE: Show a button to Staff for "Moderation History" on posts/topics 2017-12-05 15:20:20 -05:00
components FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
controllers FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
helpers FIX: improves contrast on period-chooser when using dark-theme 2018-02-14 11:16:57 +01:00
initializers PERF: Have nginx cache and serve the service worker file. 2018-02-15 10:50:39 +08:00
lib FEATURE: New site setting for additional allowed filetypes for staff (#5364) 2018-02-19 10:44:24 +01:00
mixins FIX: prevents exception when opening new topic on mobile 2018-02-06 14:48:04 +01:00
models FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
pre-initializers REFACTOR: Remove many Discourse.Category.list() calls 2017-11-01 15:25:35 -04:00
raw-views UX: prevent anons from clearing pins 📌 2018-01-31 17:13:52 +01:00
routes FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
services FEATURE: search should default scope to current category or user 2017-02-20 17:02:02 -05:00
templates FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
widgets Calculate the heights when we need them 2018-02-15 14:33:20 -05:00
mapping-router.js.es6 Allow route maps to access site easily 2017-08-09 11:49:18 -04:00