Add create from email

This commit is contained in:
Achim Rohn
2025-07-27 19:15:16 +02:00
parent 258853857f
commit 868a167660
4 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ func RunKeycloakAuth(e *echo.Echo, environment KeycloakEnv, cookieStore *session
}
func createUser(gothUser goth.User, repo UserRepository) (int, error) {
return repo.Create(gothUser.Email)
return repo.CreateFromEmail(gothUser.Email)
}
func saveEmailToSessionStore(c echo.Context, sessionStore *sessions.CookieStore, email string, userId int, environment KeycloakEnv) error {