fix: improve description for remove mfa factors button (#34105)

* fix: improve description for remove mfa factors button

* Update copy

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
This commit is contained in:
Stojan DimitrovskiandJoshen Lim authored and GitHub committed 2025-03-29 13:28:50 +01:00
1 parent 7710e54873
commit 672cc26eab
1 file changed
+5 -4
@@ -340,7 +340,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
<div className={cn('flex flex-col -space-y-1 !pt-0', PANEL_PADDING)}>
<RowAction
title="Remove MFA factors"
description="This will log the user out of all active sessions"
description="Removes all MFA factors associated with the user"
button={{
icon: <ShieldOff />,
text: 'Remove MFA factors',
@@ -409,12 +409,13 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
onConfirm={() => handleDeleteFactors()}
alert={{
base: { variant: 'warning' },
title: 'Removing MFA factors is irreversible',
description: 'This will log the user out of all active sessions.',
title:
"Removing MFA factors will drop the user's authentication assurance level (AAL) to AAL1",
description: 'Note that this does not sign the user out',
}}
>
<p className="text-sm text-foreground-light">
This is permanent! Are you sure you want to remove the MFA factors for the user{' '}
Are you sure you want to remove the MFA factors for the user{' '}
<span className="text-foreground">{user.email ?? user.phone ?? 'this user'}</span>?
</p>
</ConfirmationModal>