You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnResult.Failure(Error.Validation(ErrorCodes.Auth.InvalidRequest,"You must have at least one passkey registered to remove your password.")).ToProblemDetails();
539
+
returnResults.Problem(
540
+
statusCode:StatusCodes.Status400BadRequest,
541
+
title:"Cannot Remove Password Without a Passkey",
542
+
detail:"To keep account recovery available, register at least one passkey before removing your password. If you cannot register a passkey right now, keep your password and contact an administrator for recovery assistance.",
returnResult.Failure(Error.Validation(ErrorCodes.Passkey.LastPasskey,"Cannot delete your only passkey. You would be locked out of your account. Set a password first.")).ToProblemDetails();
500
-
}
518
+
returnResults.Problem(
519
+
statusCode:StatusCodes.Status400BadRequest,
520
+
title:"Cannot Remove Your Last Passkey",
521
+
detail:"This account has no password. Add a password while signed in, then register a replacement passkey before removing this one. If you have already lost access to all factors, contact an administrator for account recovery and re-enrollment.",
0 commit comments