aboutsummaryrefslogtreecommitdiff
path: root/routers/user/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/user.go')
-rw-r--r--routers/user/user.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 6fafcc47..241a9f35 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -16,8 +16,15 @@ import (
"github.com/gogits/gogs/utils/log"
)
-func SignIn(r render.Render) {
- r.Redirect("/user/signup", 302)
+func SignIn(req *http.Request, r render.Render) {
+ if req.Method == "GET" {
+ r.HTML(200, "user/signin", map[string]interface{}{
+ "Title": "Log In",
+ })
+ return
+ }
+
+ // todo sign in
}
func SignUp(req *http.Request, r render.Render) {