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