summaryrefslogtreecommitdiffstats
path: root/routers/web/user/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/auth.go')
-rw-r--r--routers/web/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/auth.go b/routers/web/user/auth.go
index 55a4b11007..178852d3fb 100644
--- a/routers/web/user/auth.go
+++ b/routers/web/user/auth.go
@@ -506,7 +506,7 @@ func U2FSign(ctx *context.Context) {
if redirect == "" {
redirect = setting.AppSubURL + "/"
}
- ctx.PlainText(200, []byte(redirect))
+ ctx.PlainText(http.StatusOK, redirect)
return
}
}