last commit

This commit is contained in:
valitovgaziz
2024-08-12 13:42:38 +05:00
parent 1d0b4530d0
commit 340fdb9d44
+2 -1
View File
@@ -48,9 +48,10 @@ func Login(w http.ResponseWriter, r *http.Request) {
Value: tokenString,
Expires: expirationtime,
})
w.WriteHeader(http.StatusOK)
}
func checkPasswordHash(password, hash string) bool {
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
return err == nil
}
}