fix: phone number verification

This commit is contained in:
Lakhan Samani
2023-12-04 11:28:27 +05:30
parent 3fa892431e
commit e8b99f73c3
6 changed files with 61 additions and 20 deletions

View File

@@ -78,7 +78,7 @@ func LoginResolver(ctx context.Context, params model.LoginInput) (*model.AuthRes
}
if err != nil {
log.Debug("Failed to get user: ", err)
return res, fmt.Errorf(`bad user credentials`)
return res, fmt.Errorf(`user not found`)
}
if user.RevokedTimestamp != nil {
log.Debug("User access is revoked")