diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-02 15:31:06 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-02 15:31:06 +0800 |
commit | ffcfd428b8372b3b5fafc70acf2ecc189bd7712e (patch) | |
tree | ddca40b9a262f4c0f1b55a5431e353ba87b68ba1 /routers/user/user.go | |
parent | 9c3a8ff2994a34ff28484650aa400a0b167855f3 (diff) |
ui design for sign-in and sign-up page
add /login and /sign-up link for user signing
fix typo error
Diffstat (limited to 'routers/user/user.go')
-rw-r--r-- | routers/user/user.go | 11 |
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) { |