/** * Retrieve a user by the given credentials. * * @param array $credentials * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function retrieveByCredentials(array $credentials) { // Do not allowing login without password. if (!array_key_exists('password', $credentials)) { return; } unset($credentials['password']); $user = $this->userService->getUser($credentials); return $this->getOwlUser($user); }