throw error
This commit is contained in:
parent
5678e4a606
commit
9b7abb0703
@ -63,7 +63,7 @@ app.post("/api/login", (req, res) => {
|
||||
if (remoteUser && remoteUser.length > 0 && remoteName && remoteName.length > 0) {
|
||||
res.status(200).json(generateToken(Buffer.from(remoteName, 'latin1').toString(), true));
|
||||
} else {
|
||||
res.status(500).send("Tohle nema nastat nekdo neco dela spatne.")
|
||||
throw Error("Tohle nema nastat nekdo neco dela spatne.");
|
||||
}
|
||||
} else {
|
||||
// Klasická autentizace loginem
|
||||
|
Loading…
x
Reference in New Issue
Block a user