discourse/test/javascripts/helpers
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
..
assertions.js select-kit refactoring 2017-12-22 13:08:12 +01:00
component-test.js.es6 REFACTOR: Rename store:main to service:store so we can inject it 2017-10-27 13:59:45 -04:00
create-pretender.js.es6 FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
create-store.js.es6 FEATURE: View flags grouped by topic 2017-09-25 12:25:14 -04:00
fixture-pretender.js.es6 Ember.keys is deprected in favor of Object.keys 2016-04-28 16:37:20 -04:00
flag-pretender.js.es6 Add front end service for staff controls 2017-09-25 12:25:14 -04:00
init-ember-qunit.js Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
qunit-helpers.js.es6 Fix randomly failing JS acceptance tests. 2017-12-20 11:04:47 +08:00
select-kit-helper.js select-kit refactoring 2018-01-11 09:39:51 +01:00
site-settings.js FEATURE: New site setting for additional allowed filetypes for staff (#5364) 2018-02-19 10:44:24 +01:00
site.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
store-pretender.js.es6 Add front end service for staff controls 2017-09-25 12:25:14 -04:00
widget-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00