mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
not comparing if hash is not 64 in length
This commit is contained in:
parent
957b4cf1a8
commit
a3fef55be4
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ class ResultController {
|
|||
|
||||
let resulthash = result.hash;
|
||||
delete result.hash;
|
||||
if (req.ctx.configuration.resultObjectHashCheck.enabled) {
|
||||
if (
|
||||
req.ctx.configuration.resultObjectHashCheck.enabled &&
|
||||
resulthash.length === 64
|
||||
) {
|
||||
//if its not 64 that means client is still using old hashing package
|
||||
const serverhash = objecthash(result);
|
||||
if (serverhash !== resulthash) {
|
||||
Logger.log(
|
||||
|
|
Loading…
Add table
Reference in a new issue