mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fixed hash version
This commit is contained in:
parent
c3ef511e87
commit
353b9b3b7d
@ -306,7 +306,6 @@ Version 4: Data URL when not a realtime link yet (new pad or "static" app)
|
||||
parsed.channel = hash.slice(0, 32);
|
||||
parsed.key = hash.slice(32, 56);
|
||||
parsed.version = 0;
|
||||
parsed.auditorKey = getAuditorKey(hashArr);
|
||||
return parsed;
|
||||
}
|
||||
|
||||
|
||||
@ -27,11 +27,10 @@ define([
|
||||
var keys = Utils.secret && Utils.secret.keys;
|
||||
var parsed;
|
||||
if (parsedHash) {
|
||||
parsed = Utils.Hash.parseTypeHash('pad', parsedHash.hash.slice(1));
|
||||
parsed = parsedHash.hashData;
|
||||
} else {
|
||||
parsed = Utils.Hash.parseTypeHash('pad', hash.slice(1));
|
||||
}
|
||||
|
||||
if (parsed && parsed.auditorKey) {
|
||||
meta.form_auditorKey = parsed.auditorKey;
|
||||
meta.form_auditorHash = hash;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user