Skip to content

Commit f594580

Browse files
committed
fix: update error message for OTP verification failure
1 parent 2b166b6 commit f594580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
358358
this.adminforth.auth.setAuthCookie({expireInDays: decoded.rememberMeDays, response, username:decoded.userName, pk:decoded.pk})
359359
return { status: 'ok', allowedLogin: true }
360360
} else {
361-
return {error: 'Wrong or expired OTP code'}
361+
return {error: 'Verification failed'}
362362
}
363363
}
364364
}

0 commit comments

Comments
 (0)