From 07559d61b3478d97b5b653728da6fb658c873b1f Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 30 Aug 2021 11:05:41 +0500 Subject: [PATCH] fix(be): issue with login after new ldap user creaded --- api/login.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/login.go b/api/login.go index 1a7d9b18..1a362b9c 100644 --- a/api/login.go +++ b/api/login.go @@ -131,8 +131,7 @@ func login(w http.ResponseWriter, r *http.Request) { if err == db.ErrNotFound { if ldapUser != nil { // create new LDAP user - user = *ldapUser - _, err = helpers.Store(r).CreateUserWithoutPassword(user) + user, err = helpers.Store(r).CreateUserWithoutPassword(*ldapUser) if err != nil { panic(err) }