Fix old hashes not working with the new parser
This commit is contained in:
@@ -167,8 +167,8 @@ Version 1
|
|||||||
// new hash system : #/{hashVersion}/{b64ChanKey}/{cryptKey}
|
// new hash system : #/{hashVersion}/{b64ChanKey}/{cryptKey}
|
||||||
if (parsed.version === 0) {
|
if (parsed.version === 0) {
|
||||||
// Old hash
|
// Old hash
|
||||||
secret.channel = hash.slice(0, 32);
|
secret.channel = parsed.channel;
|
||||||
secret.key = hash.slice(32);
|
secret.key = parsed.key;
|
||||||
}
|
}
|
||||||
else if (parsed.version === 1) {
|
else if (parsed.version === 1) {
|
||||||
// New hash
|
// New hash
|
||||||
|
|||||||
Reference in New Issue
Block a user