This commit is contained in:
syuilo
2018-04-08 04:44:59 +09:00
parent cebea4e94c
commit 7f448221ce
3 changed files with 8 additions and 3 deletions

View File

@ -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) {