Page MenuHomePhabricator

D10809.diff
No OneTemporary

D10809.diff

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

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)

Event Timeline