Fix template reference bug.
このコミットが含まれているのは:
コミット
25fe8c73a4
|
@ -82,8 +82,8 @@ The password reset mechanism by mail is inactive by default. To activate it, a
|
|||
set of flags `--mailserver`, `--mailport`, `--mailuser` must be set to describe
|
||||
a SMTP server and its login from which to send password reset mails to users'
|
||||
mail addresses. (The site operator will be prompted for his SMTP login password
|
||||
on program start.) Whether this mechanism is trustworthy or not is a decision up
|
||||
to the site operator.
|
||||
on program start.) Whether this mechanism is trustworthy or not is up to the
|
||||
site operator.
|
||||
|
||||
### Change HTML templates
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -238,7 +238,7 @@ func login(w http.ResponseWriter, r *http.Request) (string, error) {
|
|||
} else {
|
||||
replaceLineStartingWith(ipDelaysPath, ip, line)
|
||||
}
|
||||
execTemplate(w, "error_pw.html", "Bad login.")
|
||||
execTemplate(w, "error_login.html", "Bad login.")
|
||||
return name, errors.New("")
|
||||
}
|
||||
return name, nil
|
||||
|
|
読み込み中…
新しいイシューから参照