3
0

Fix errors on internal login

This commit is contained in:
Denis Arh
2020-12-16 11:45:13 +01:00
parent f877fd5914
commit 40a0da5bd7
+3 -1
View File
@@ -429,7 +429,9 @@ func (svc auth) InternalLogin(ctx context.Context, email string, password string
)
u, err = store.LookupUserByEmail(ctx, svc.store, email)
if err != nil {
if errors.IsNotFound(err) {
return AuthErrInvalidCredentials(aam)
} else if err != nil {
return err
}