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:
Osama Sayegh
2022-03-04 06:43:06 +03:00
committed by GitHub
parent 967946378a
commit 8c71878ff5
11 changed files with 53 additions and 4 deletions

View File

@ -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,