MCPcopy
hub / github.com/OpenListTeam/OpenList / ValidateRawPassword

Method ValidateRawPassword

internal/model/user.go:82–84  ·  view source on GitHub ↗
(password string)

Source from the content-addressed store, hash-verified

80}
81
82func (u *User) ValidateRawPassword(password string) error {
83 return u.ValidatePwdStaticHash(StaticHash(password))
84}
85
86func (u *User) ValidatePwdStaticHash(pwdStaticHash string) error {
87 if pwdStaticHash == "" {

Callers 3

AuthUserMethod · 0.95
tryLoginFunction · 0.80
PasswordAuthMethod · 0.80

Calls 2

ValidatePwdStaticHashMethod · 0.95
StaticHashFunction · 0.85

Tested by

no test coverage detected