Skip to content

Commit 5c8f905

Browse files
committed
User data must be updatable from LDAP on authentication
Fixes: cda4a8a Related: #18466 Author-Change-Id: IB#1105051
1 parent 25673a9 commit 5c8f905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/auth/source/ldap/source_authenticate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (source *Source) Authenticate(user *user_model.User, userName, password str
5050
cols = append(cols, "is_restricted")
5151
}
5252
if len(cols) > 0 {
53-
err = user_model.UpdateUserCols(db.DefaultContext, user, cols...)
53+
err = user_model.UpdateForceUserCols(db.DefaultContext, user, cols...)
5454
if err != nil {
5555
return nil, err
5656
}

0 commit comments

Comments
 (0)