mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
UX: Add description to the 2FA page when adding new admins (#16098)
This PR adds an extra description to the 2FA page when granting a user admin access. It also introduces a general system for adding customized descriptions that can be used by future actions. (Follow-up to dd6ec65061e747442f3d2ab0eb60764e88eff2d8)
This commit is contained in:
@ -2305,6 +2305,7 @@ describe SessionController do
|
||||
UserSecondFactor.methods[:totp],
|
||||
UserSecondFactor.methods[:security_key],
|
||||
)
|
||||
expect(challenge_data["description"]).to eq("this is description for test action")
|
||||
|
||||
Fabricate(
|
||||
:user_security_key_with_random_credential,
|
||||
|
Reference in New Issue
Block a user