aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/repo/http.go')
-rw-r--r--routes/repo/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/repo/http.go b/routes/repo/http.go
index 2724ee1c..07101661 100644
--- a/routes/repo/http.go
+++ b/routes/repo/http.go
@@ -124,9 +124,9 @@ func HTTPContexter() macaron.Handler {
return
}
- authUser, err := models.UserSignIn(authUsername, authPassword)
+ authUser, err := models.UserLogin(authUsername, authPassword, -1)
if err != nil && !errors.IsUserNotExist(err) {
- c.Handle(http.StatusInternalServerError, "UserSignIn", err)
+ c.Handle(http.StatusInternalServerError, "UserLogin", err)
return
}