MCPcopy Create free account
hub / github.com/devinterface/startersaas-go-api / checkPasswordHash

Function checkPasswordHash

services/auth.service.go:29–32  ·  view source on GitHub ↗
(password, hash string)

Source from the content-addressed store, hash-verified

27}
28
29func checkPasswordHash(password, hash string) bool {
30 err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
31 return err == nil
32}
33
34// Login function
35func (authService *AuthService) Login(email string, cleanPassword string, refreshToken bool) (response map[string]string, err error) {

Callers 1

LoginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected