Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function signIn(): bool
- {
- $username = filter_var($this->username, FILTER_SANITIZE_STRING);
- $password = filter_var($this->password, FILTER_SANITIZE_STRING);
- try {
- $client = $this->client->getByUsername($username);
- if (password_verify($password, $client->getPassword())) {
- $this->setClientSession($client);
- return true;
- }
- } catch (ClientNotFoundException $clientNotFoundException) {
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement