summaryrefslogtreecommitdiffstats
path: root/routers/admin/auths.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-10 15:45:03 -0400
committerUnknwon <u@gogs.io>2015-09-10 15:45:03 -0400
commitfa728d8dff2ddb8039efc2767f4fefb2d2f62004 (patch)
tree76290247b6605e4a41ccb3eff627863687a68019 /routers/admin/auths.go
parent26ac016b9fb6b3fb308996e2ee56dad0b794aa49 (diff)
downloadgitea-fa728d8dff2ddb8039efc2767f4fefb2d2f62004.tar.gz
gitea-fa728d8dff2ddb8039efc2767f4fefb2d2f62004.zip
more minor fix on 1581
Diffstat (limited to 'routers/admin/auths.go')
-rw-r--r--routers/admin/auths.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go
index 1f4be231e9..f71b786e85 100644
--- a/routers/admin/auths.go
+++ b/routers/admin/auths.go
@@ -34,6 +34,8 @@ func Authentications(ctx *middleware.Context) {
ctx.Handle(500, "GetAuths", err)
return
}
+
+ ctx.Data["Total"] = models.CountLoginSources()
ctx.HTML(200, AUTHS)
}
@@ -61,7 +63,7 @@ func NewAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) {
var u core.Conversion
switch models.LoginType(form.Type) {
case models.LDAP:
- fallthrough
+ fallthrough
case models.DLDAP:
u = &models.LDAPConfig{
Ldapsource: ldap.Ldapsource{
@@ -152,7 +154,7 @@ func EditAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) {
var config core.Conversion
switch models.LoginType(form.Type) {
case models.LDAP:
- fallthrough
+ fallthrough
case models.DLDAP:
config = &models.LDAPConfig{
Ldapsource: ldap.Ldapsource{