mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
print login block size when it exceeds the maximum
This commit is contained in:
parent
08b6009a84
commit
d8ef2c8371
@ -475,6 +475,10 @@ Workers.initialize = function (Env, config, _cb) {
|
||||
Env.validateLoginBlock = function (publicKey, signature, block, cb) {
|
||||
if (!block || !block.length || block.length > Block.MAX_SIZE) {
|
||||
return void setTimeout(function () {
|
||||
Env.Log.error('E_INVALID_BLOCK_SIZE', {
|
||||
size: block.length,
|
||||
});
|
||||
|
||||
cb('E_INVALID_BLOCK_SIZE');
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user