(username, password string)
| 160 | } |
| 161 | |
| 162 | func (s *Storage) CheckUsernamePasswordSimple(username, password string) error { |
| 163 | s.lock.Lock() |
| 164 | defer s.lock.Unlock() |
| 165 | |
| 166 | user := s.userStore.GetUserByUsername(username) |
| 167 | if user != nil && user.Password == password { |
| 168 | return nil |
| 169 | } |
| 170 | return fmt.Errorf("username or password wrong") |
| 171 | } |
| 172 | |
| 173 | // CreateAuthRequest implements the op.Storage interface |
| 174 | // it will be called after parsing and validation of the authentication request |
nothing calls this directly
no test coverage detected