Refactoring
This commit is contained in:
parent
213df69893
commit
2f9b2afa15
1 changed files with 2 additions and 1 deletions
|
@ -178,7 +178,7 @@ func handlePasswd(w http.ResponseWriter, r *http.Request) {
|
||||||
data := &PasswdTplData{
|
data := &PasswdTplData{
|
||||||
Common: NestedCommonTplData{
|
Common: NestedCommonTplData{
|
||||||
CanAdmin: false,
|
CanAdmin: false,
|
||||||
LoggedIn: false,
|
LoggedIn: true,
|
||||||
ErrorMessage: "",
|
ErrorMessage: "",
|
||||||
Success: false,
|
Success: false,
|
||||||
},
|
},
|
||||||
|
@ -190,6 +190,7 @@ func handlePasswd(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data.Login.Status = login
|
data.Login.Status = login
|
||||||
|
data.Common.CanAdmin = login.Common.CanAdmin
|
||||||
|
|
||||||
if r.Method == "POST" {
|
if r.Method == "POST" {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
|
|
Loading…
Reference in a new issue