1
0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-09-18 23:22:59 +00:00

Fix: Typo

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-24 12:11:56 +01:00
parent 836006de64
commit 9891df2a16
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -17,7 +17,7 @@ import (
func loginHandler(res http.ResponseWriter, r *http.Request, session *sessions.Session, ctx *pongo2.Context) (*string, error) {
var (
username = strings.ToLower(r.FormValue("username"))
password = r.FormValue("passsword")
password = r.FormValue("password")
deprecatedPassword = fmt.Sprintf("%x", sha1.Sum([]byte(cfg.PasswordSalt+r.FormValue("password")))) // Here for backwards compatibility
)