Skip to content

Commit 00e78be

Browse files
committed
Invalidate TOTP secret on TOTP disable
1 parent 4913cf8 commit 00e78be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Data/ApiDataSchemas/AccountEditRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ private User ApplyChanges(User target) {
5959
break;
6060
case "false":
6161
target.TotpEnabled = false;
62+
target.TotpSecret = null;
6263
break;
6364
default:
6465
throw new ArgumentException("Invalid value for ToptEnabled");

0 commit comments

Comments
 (0)