Fixed Change Password Bug
This commit is contained in:
parent
4c34b8cb42
commit
f46a843e0b
1 changed files with 5 additions and 5 deletions
10
login.go
10
login.go
|
@ -61,11 +61,11 @@ type LoginFormData struct {
|
|||
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
||||
templateLogin := getTemplate("login.html")
|
||||
|
||||
loginStatus := checkLogin(w, r)
|
||||
if loginStatus != nil {
|
||||
handleHome(w, r)
|
||||
return loginStatus.Info
|
||||
}
|
||||
// loginStatus := checkLogin(w, r)
|
||||
// if loginStatus != nil {
|
||||
// handleHome(w, r)
|
||||
// return loginStatus.Info
|
||||
// }
|
||||
|
||||
if r.Method == "GET" {
|
||||
templateLogin.Execute(w, LoginFormData{CanAdmin: false})
|
||||
|
|
Loading…
Reference in a new issue