Fix checking if the user already exists
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-11-21 13:42:19 +01:00
parent 61b2e7566e
commit d7f2ee1682
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ func HandleCallback(c echo.Context) error {
func getOrCreateUser(cl *claims, issuer, subject string) (u *user.User, err error) {
// Check if the user exists for that issuer and subject
u, err = user.GetUser(&user.User{
u, err = user.GetUserWithEmail(&user.User{
Issuer: issuer,
Subject: subject,
})