Commit 0011af63 authored by Leon's avatar Leon 😶


parent 01703fb3
Pipeline #12066 passed with stage
in 1 minute and 28 seconds
......@@ -14,7 +14,7 @@ const loginErr = {
async function checkLogin(username: string, password: string): Promise<Token> {
const user = await findUserByName(username);
if (!user) throw false;
if (!checkPassword(user, password)) throw false;
if (!await checkPassword(user, password)) throw false;
const role = getRole(user);
return {
token: createJwtToken(username, role, user.password_last_modified_at),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment