last commit
This commit is contained in:
@@ -48,9 +48,10 @@ func Login(w http.ResponseWriter, r *http.Request) {
|
|||||||
Value: tokenString,
|
Value: tokenString,
|
||||||
Expires: expirationtime,
|
Expires: expirationtime,
|
||||||
})
|
})
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkPasswordHash(password, hash string) bool {
|
func checkPasswordHash(password, hash string) bool {
|
||||||
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
|
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
|
||||||
return err == nil
|
return err == nil
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user