summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 21c301321f..69f1db47b3 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -130,8 +130,8 @@ func SignInPost(ctx *context.Context, form auth.SignInForm) {
// Register last login
u.SetLastLogin()
if err := models.UpdateUser(u); err != nil {
- ctx.Handle(500, "UpdateUser", err)
- return
+ ctx.Handle(500, "UpdateUser", err)
+ return
}
if redirectTo, _ := url.QueryUnescape(ctx.GetCookie("redirect_to")); len(redirectTo) > 0 {