Fixed Change Password Bug
This commit is contained in:
parent
671e7fca26
commit
febfed7bee
1 changed files with 2 additions and 1 deletions
3
login.go
3
login.go
|
@ -59,7 +59,6 @@ type LoginFormData struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
||||||
templateLogin := getTemplate("login.html")
|
|
||||||
|
|
||||||
loginStatus := checkLogin(w, r)
|
loginStatus := checkLogin(w, r)
|
||||||
if loginStatus != nil {
|
if loginStatus != nil {
|
||||||
|
@ -69,6 +68,8 @@ func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
||||||
// return loginStatus.Info
|
// return loginStatus.Info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
templateLogin := getTemplate("login.html")
|
||||||
|
|
||||||
if r.Method == "GET" {
|
if r.Method == "GET" {
|
||||||
templateLogin.Execute(w, LoginFormData{CanAdmin: false})
|
templateLogin.Execute(w, LoginFormData{CanAdmin: false})
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue