diff options
author | Unknwon <u@gogs.io> | 2015-11-21 12:58:31 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-21 12:58:31 -0500 |
commit | eea2e05da65c66d9739cecbad77741a0b7c320b0 (patch) | |
tree | 1ab1e2e6b5ffef922e87ae2da5ab3f8fed0312bd /models/login.go | |
parent | 2b1e955f91655930bcc65dca698b4281d8e61ce1 (diff) | |
download | gitea-eea2e05da65c66d9739cecbad77741a0b7c320b0.tar.gz gitea-eea2e05da65c66d9739cecbad77741a0b7c320b0.zip |
minor fix on #1694
Diffstat (limited to 'models/login.go')
-rw-r--r-- | models/login.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/models/login.go b/models/login.go index 79a262c575..011d946a47 100644 --- a/models/login.go +++ b/models/login.go @@ -225,10 +225,9 @@ func DeleteSource(source *LoginSource) error { // |_______ \/_______ /\____|__ /____| // \/ \/ \/ -// Query if name/passwd can login against the LDAP directory pool -// Create a local user if success -// Return the same LoginUserPlain semantic -// FIXME: https://github.com/gogits/gogs/issues/672 +// LoginUserLDAPSource queries if name/passwd can login against the LDAP directory pool, +// and create a local user if success when enabled. +// It returns the same LoginUserPlain semantic. func LoginUserLDAPSource(u *User, name, passwd string, source *LoginSource, autoRegister bool) (*User, error) { cfg := source.Cfg.(*LDAPConfig) directBind := (source.Type == DLDAP) |