From fa728d8dff2ddb8039efc2767f4fefb2d2f62004 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 10 Sep 2015 15:45:03 -0400 Subject: more minor fix on 1581 --- routers/admin/auths.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'routers/admin') 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{ -- cgit v1.2.3