2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/spec/controllers/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
..
admin_controller_spec.rb FIX: return 429 when admin api key is limited on admin route 2018-01-12 14:15:26 +11:00
api_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
backups_controller_spec.rb SECURITY: Don't pass email backup token to sidekiq as a parameter. 2017-12-18 11:25:22 +08:00
badges_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
color_schemes_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
dashboard_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
email_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
embeddable_hosts_controller_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
embedding_controller_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
emojis_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
groups_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
impersonate_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
permalinks_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
plugins_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
reports_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
screened_emails_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
screened_ip_addresses_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
screened_urls_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
site_settings_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
site_texts_controller_spec.rb FIX: Customizing site texts ignored current locale for _MF keys 2018-02-07 16:57:08 +01:00
staff_action_logs_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
themes_controller_spec.rb FIX: import/export theme should work with uploads 2017-11-14 16:30:23 +11:00
user_fields_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
users_controller_spec.rb FEATURE: Implement 2factor login TOTP 2018-02-21 09:04:07 +08:00
versions_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
web_hooks_controller_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00