MCPcopy
hub / github.com/tinyauthapp/tinyauth / CheckPassword

Method CheckPassword

internal/service/auth_service.go:223–225  ·  view source on GitHub ↗
(user config.User, password string)

Source from the content-addressed store, hash-verified

221}
222
223func (auth *AuthService) CheckPassword(user config.User, password string) bool {
224 return bcrypt.CompareHashAndPassword([]byte(user.Password), []byte(password)) == nil
225}
226
227func (auth *AuthService) IsAccountLocked(identifier string) (bool, int) {
228 auth.loginMutex.RLock()

Callers 1

VerifyUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected