validatePassword validates a password
(password string)
| 28 | |
| 29 | // validatePassword validates a password |
| 30 | func 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 |
| 39 | func (a *App) TouchLastLoginAt(user database.User, tx *gorm.DB) error { |
no outgoing calls