mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 11:06:06 +01:00
(refs #78)Fix for LDAP authentication.
This commit is contained in:
@@ -27,9 +27,10 @@ trait SignInControllerBase extends ControllerBase { self: SystemSettingsService
|
||||
|
||||
post("/signin", form){ form =>
|
||||
val settings = loadSystemSettings()
|
||||
settings.authType match {
|
||||
case "LDAP" => ldapAuthentication(form, settings)
|
||||
case _ => defaultAuthentication(form)
|
||||
if(settings.ldapAuthentication){
|
||||
ldapAuthentication(form, settings)
|
||||
} else {
|
||||
defaultAuthentication(form)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user