Fix bugs
This commit is contained in:
parent
cebea4e94c
commit
7f448221ce
3 changed files with 8 additions and 3 deletions
|
@ -49,7 +49,7 @@ export default async (req: express.Request, res: express.Response) => {
|
|||
}
|
||||
|
||||
// Compare password
|
||||
const same = await bcrypt.compare(password, password);
|
||||
const same = await bcrypt.compare(password, user.password);
|
||||
|
||||
if (same) {
|
||||
if (user.twoFactorEnabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue