removed username/password from setup

This commit is contained in:
zadam
2021-12-28 22:59:38 +01:00
parent a910034c96
commit 7e48d214ca
5 changed files with 52 additions and 129 deletions

View File

@@ -12,9 +12,7 @@ function initDocumentOptions() {
optionService.createOption('documentSecret', utils.randomSecureToken(16), false);
}
function initSyncedOptions(username, password) {
optionService.createOption('username', username, true);
function initPassword(username, password) {
optionService.createOption('passwordVerificationSalt', utils.randomSecureToken(32), true);
optionService.createOption('passwordDerivedKeySalt', utils.randomSecureToken(32), true);
@@ -129,7 +127,7 @@ function getKeyboardDefaultOptions() {
module.exports = {
initDocumentOptions,
initSyncedOptions,
initPassword,
initNotSyncedOptions,
initStartupOptions
};