Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3351633
D10809.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
833 B
Referenced Files
None
Subscribers
None
D10809.diff
View Options
diff --git a/keyserver/src/user/login.js b/keyserver/src/user/login.js
--- a/keyserver/src/user/login.js
+++ b/keyserver/src/user/login.js
@@ -4,6 +4,7 @@
import { getRustAPI } from 'rust-node-addon';
import { getOneTimeKeyValuesFromBlob } from 'lib/shared/crypto-utils.js';
+import { ONE_TIME_KEYS_NUMBER } from 'lib/types/identity-service-types.js';
import { getCommConfig } from 'lib/utils/comm-config.js';
import { ServerError } from 'lib/utils/errors.js';
@@ -40,8 +41,8 @@
let oneTimeKeys = getOneTimeKeyValuesFromBlob(account.one_time_keys());
- if (oneTimeKeys.length < 10) {
- account.generate_one_time_keys(10);
+ if (oneTimeKeys.length < ONE_TIME_KEYS_NUMBER) {
+ account.generate_one_time_keys(ONE_TIME_KEYS_NUMBER);
oneTimeKeys = getOneTimeKeyValuesFromBlob(account.one_time_keys());
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 2:55 AM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573608
Default Alt Text
D10809.diff (833 B)
Attached To
Mode
D10809: [keyserver] use ONE_TIME_KEYS_NUMBER instead of 10
Attached
Detach File
Event Timeline
Log In to Comment