Skip to content

Commit f2af1ca

Browse files
committed
fix: bug promise compare password
1 parent c582c61 commit f2af1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/Auth/service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class AuthService {
106106
/* User active proses login */
107107
if (userData.active) {
108108
// @ts-ignore
109-
const comparePassword = userData.comparePassword(password)
109+
const comparePassword = await userData.comparePassword(password)
110110

111111
if (comparePassword) {
112112
// modif payload token

0 commit comments

Comments
 (0)