mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
fix(be): issue with login after new ldap user creaded
This commit is contained in:
parent
81e50f82ef
commit
07559d61b3
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user