mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-23 17:53:23 +02:00
added POST handler for gitlab login
This commit is contained in:
parent
b209355ca5
commit
eddc11130a
@ -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…
x
Reference in New Issue
Block a user