Multi-factor authentication #1817
Reference in New Issue
Block a user
Delete Branch "mfa"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #1372
https://github.com/user-attachments/assets/b4047e5d-bb24-4c1a-8a2c-e376c8d5eec1
Everything works great!
From a security standpoint, we should probably protect the
password_resets_controllerwith 2FA if the user has it enabled. Other than that, I think the flow looks good.@@ -0,0 +1,53 @@class MfaController < ApplicationControllerWe can remove the
Current.sessioncheck since we're skipping this route for authentication.@@ -133,4 +168,26 @@ class User < ApplicationRecorderrors.add(:profile_image, :invalid_file_size, max_megabytes: 10)Just to stay consistent with our domain URL to increase trust
We can delete "destroys session" and "rejects invalid credentials" as they are both dups of existing tests
Can delete this and throw the
assert Session.exists?(user_id: @user.id)up in the "can sign in" test