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 {
|
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
||||||
templateLogin := getTemplate("login.html")
|
templateLogin := getTemplate("login.html")
|
||||||
|
|
||||||
loginStatus := checkLogin(w, r)
|
// loginStatus := checkLogin(w, r)
|
||||||
if loginStatus != nil {
|
// if loginStatus != nil {
|
||||||
handleHome(w, r)
|
// handleHome(w, r)
|
||||||
return loginStatus.Info
|
// return loginStatus.Info
|
||||||
}
|
// }
|
||||||
|
|
||||||
if r.Method == "GET" {
|
if r.Method == "GET" {
|
||||||
templateLogin.Execute(w, LoginFormData{CanAdmin: false})
|
templateLogin.Execute(w, LoginFormData{CanAdmin: false})
|
||||||
|
|
Loading…
Reference in a new issue