MCPcopy Index your code
hub / github.com/dnote/dnote / validatePassword

Function validatePassword

pkg/server/app/users.go:30–36  ·  view source on GitHub ↗

validatePassword validates a password

(password string)

Source from the content-addressed store, hash-verified

28
29// validatePassword validates a password
30func validatePassword(password string) error {
31 if len(password) < 8 {
32 return ErrPasswordTooShort
33 }
34
35 return nil
36}
37
38// TouchLastLoginAt updates the last login timestamp
39func (a *App) TouchLastLoginAt(user database.User, tx *gorm.DB) error {

Callers 3

CreateUserMethod · 0.85
UpdateUserPasswordFunction · 0.85
TestValidatePasswordFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidatePasswordFunction · 0.68