aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user/setting/security/security.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/setting/security/security.go')
-rw-r--r--routers/web/user/setting/security/security.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go
index 38d1910e2d..cc4c44993a 100644
--- a/routers/web/user/setting/security/security.go
+++ b/routers/web/user/setting/security/security.go
@@ -27,7 +27,7 @@ const (
func Security(ctx *context.Context) {
if user_model.IsFeatureDisabledWithLoginType(ctx.Doer,
setting.UserFeatureManageMFA, setting.UserFeatureManageCredentials) {
- ctx.Error(http.StatusNotFound)
+ ctx.HTTPError(http.StatusNotFound)
return
}
@@ -47,7 +47,7 @@ func Security(ctx *context.Context) {
// DeleteAccountLink delete a single account link
func DeleteAccountLink(ctx *context.Context) {
if user_model.IsFeatureDisabledWithLoginType(ctx.Doer, setting.UserFeatureManageCredentials) {
- ctx.Error(http.StatusNotFound)
+ ctx.HTTPError(http.StatusNotFound)
return
}