diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-16 01:54:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 01:54:08 +0800 |
commit | a4de85dc806f6b7e344eb5bf8424ef2bb4815571 (patch) | |
tree | 57d8e290f9ccc8002629c9039efd469b689b649a /internal/context/auth.go | |
parent | 9e9ca66467116e9079a2639c00e9e623aca23015 (diff) |
util: add tests (#5989)
Diffstat (limited to 'internal/context/auth.go')
-rw-r--r-- | internal/context/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/auth.go b/internal/context/auth.go index 2a7a1aef..ad583791 100644 --- a/internal/context/auth.go +++ b/internal/context/auth.go @@ -35,7 +35,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { // Check prohibit login users. if c.IsLogged && c.User.ProhibitLogin { c.Data["Title"] = c.Tr("auth.prohibit_login") - c.Success( "user/auth/prohibit_login") + c.Success("user/auth/prohibit_login") return } |