fix a bug when user wasn't logged in
This commit is contained in:
parent
b85dc07bac
commit
988d90b46f
@ -11,7 +11,10 @@ export const setup = function (router, con, server) {
|
|||||||
let unsigned;
|
let unsigned;
|
||||||
if (req.body.user == undefined || req.body.pass == undefined) {
|
if (req.body.user == undefined || req.body.pass == undefined) {
|
||||||
unsigned = unsign.getunsigned(req, res);
|
unsigned = unsign.getunsigned(req, res);
|
||||||
if (!unsigned)next()
|
if (!unsigned){
|
||||||
|
next()
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unsigned = `${req.body.user} ${SHA.SHA256(req.body.pass, req.body.user, HASHES_COOKIE)}`;
|
unsigned = `${req.body.user} ${SHA.SHA256(req.body.pass, req.body.user, HASHES_COOKIE)}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user