mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
lint compliance
This commit is contained in:
parent
8b97742ef6
commit
b3a620edc0
@ -509,7 +509,7 @@ var getDocumentStatus = function (Env, Server, cb, data) {
|
||||
recovery: parsed.contact && parsed.contact.split(':')[0]
|
||||
};
|
||||
} else {
|
||||
response.totp = err
|
||||
response.totp = err;
|
||||
}
|
||||
}));
|
||||
}).nThen(function () {
|
||||
|
||||
@ -1290,7 +1290,7 @@ define([
|
||||
|
||||
var msg = Nacl.util.decodeUTF8(Sortify(clone));
|
||||
var sig = Nacl.util.decodeBase64(json.proof);
|
||||
var pub = Nacl.util.decodeBase64(json.blockId)
|
||||
var pub = Nacl.util.decodeBase64(json.blockId);
|
||||
return Nacl.sign.detached.verify(msg, sig, pub);
|
||||
};
|
||||
|
||||
|
||||
@ -118,7 +118,7 @@ define([
|
||||
LocalStore.login = function (userHash, blockHash, name, cb) {
|
||||
if (!userHash && !blockHash) { throw new Error('expected a user hash'); }
|
||||
if (!name) { throw new Error('expected a user name'); }
|
||||
if (userHash) { LocalStore.setUserHash(userHas); }
|
||||
if (userHash) { LocalStore.setUserHash(userHash); }
|
||||
if (blockHash) { LocalStore.setBlockHash(blockHash); }
|
||||
safeSet(Constants.userNameKey, name);
|
||||
if (cb) { cb(); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user