fix: bug fix exists

This commit is contained in:
Derrick Hammer 2024-02-17 20:19:00 -05:00
parent 484b9ac583
commit 0cb1f96813
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -417,7 +417,11 @@ func (s AccountServiceDefault) exists(model interface{}, conditions map[string]i
return false, nil, nil
}
return exists, model, NewAccountError(ErrKeyDatabaseOperationFailed, result.Error)
if exists {
return true, model, nil
}
return false, model, NewAccountError(ErrKeyDatabaseOperationFailed, result.Error)
}
func (s AccountServiceDefault) validPassword(user *models.User, password string) bool {