Refactoring
This commit is contained in:
parent
36a1816ba1
commit
fd4efc08bf
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ func handlePasswd(w http.ResponseWriter, r *http.Request) {
|
||||||
login := checkLogin(w, r)
|
login := checkLogin(w, r)
|
||||||
if login == nil {
|
if login == nil {
|
||||||
data.Common.LoggedIn = false
|
data.Common.LoggedIn = false
|
||||||
templatePasswd.Execute(w, data)
|
http.Redirect(w, r, "/", http.StatusFound)
|
||||||
|
|
||||||
|
// templatePasswd.Execute(w, data)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data.Login.Status = login
|
data.Login.Status = login
|
||||||
|
|
Loading…
Reference in a new issue