Some additions

This commit is contained in:
2018-11-12 11:43:14 +01:00
parent 4d857daf5d
commit 3a616b0b5e
3 changed files with 18 additions and 6 deletions

View File

@ -81,7 +81,7 @@ func (c *AuthController) Login() {
return
}
if password != userCompanyMapping.PasswordHash { // TODO: Hash me
if !tokenTools.CheckPasswordHash(password, userCompanyMapping.PasswordHash) {
c.ServeJSONError("Email/Password incorrect")
return
}