mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-20 10:28:12 +00:00
fix(web): use a distinct salt for TOTP authentication
If TOTP is enabled for a user, it will be disabled until the user configure it again, which will generate a new private salt.
This commit is contained in:
1 parent
ba86b0fd11
commit
d4da1facf9
11 files changed
+115
-35
No files matched your search
@@ -1138,7 +1138,7 @@
|
||||
|
||||
size_t s_len, secret_len;
|
||||
|
||||
key = [[[self userSettings] userSalt] substringToIndex: 12];
|
||||
key = [[[self userSettings] userPrivateSalt] substringToIndex: 12];
|
||||
s = [key UTF8String];
|
||||
s_len = strlen(s);
|
||||
|
||||
|
||||
Reference in new issue
Block a user