added POST handler for gitlab login
This commit is contained in:
parent
b209355ca5
commit
eddc11130a
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ minor modifications to the style that only apply to this view
|
|||
<article id="loginpage">
|
||||
<form class="pure-g" method="POST" action="/login/gitlab.com">
|
||||
<div class="pure-u-1">
|
||||
<input type="text" name="username" placeholder="Username" />
|
||||
<input type="text" name="username" placeholder="Email Address" />
|
||||
</div>
|
||||
<div class="pure-u-1">
|
||||
<input type="password" name="password" placeholder="Password" />
|
||||
|
|
|
@ -156,5 +156,6 @@ func (h *LoginHandler) GetLogout(w http.ResponseWriter, r *http.Request) error {
|
|||
|
||||
func (h *LoginHandler) Register(r *pat.Router) {
|
||||
r.Get("/login/{host}", errorHandler(h.GetLogin))
|
||||
r.Post("/login/{host}", errorHandler(h.GetLogin))
|
||||
r.Get("/logout", errorHandler(h.GetLogout))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue