mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
Fix cache state
This commit is contained in:
parent
d72d83d0f3
commit
a2a8f9de74
@ -73,6 +73,8 @@ module.exports = eggspress('/auth/configure-2fa/:action', {
|
||||
`UPDATE user SET otp_enabled = 0, otp_recovery_codes = '' WHERE uuid = ?`,
|
||||
[user.uuid]
|
||||
);
|
||||
// update cached user
|
||||
req.user.otp_enabled = 0;
|
||||
return { success: true };
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user