Skip to content
Permalink
Browse files Browse the repository at this point in the history
api: (account) Fix improper password verification
  • Loading branch information
5HT2 committed Apr 30, 2023
1 parent b6a510f commit bd80ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/account.go
Expand Up @@ -84,7 +84,7 @@ func AccountPostLogin(w http.ResponseWriter, r *http.Request) {
return
}

account, err = a1.ValidatePassword(account.Password, "Password")
account, err = a1.VerifyPassword(account.Password)
if err != nil {
ctx.HandleStatus(w, r, "Invalid username or password!", http.StatusForbidden)
return
Expand Down

0 comments on commit bd80ba8

Please sign in to comment.