mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-27 03:54:11 +00:00
feat: base oauth/oidc method handlers
feat: protobuf service interface (`AuthServiceServer`) methods comparison against implemented `AuthService` at compile time
This commit is contained in:
@@ -32,9 +32,5 @@ func HashPassword(password string) (string, error) {
|
||||
|
||||
func CompareHashAndPassword(password string, hashedPassword string) bool {
|
||||
err := bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
return err == nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user