|
@@ 688-691 (lines=4) @@
|
| 685 |
|
} catch (PasswordlessTokenException $ex) { |
| 686 |
|
// Token has no password |
| 687 |
|
|
| 688 |
|
if (!is_null($this->activeUser) && !$this->activeUser->isEnabled()) { |
| 689 |
|
$this->tokenProvider->invalidateToken($token); |
| 690 |
|
return false; |
| 691 |
|
} |
| 692 |
|
|
| 693 |
|
$dbToken->setLastCheck($now); |
| 694 |
|
return true; |
|
@@ 698-701 (lines=4) @@
|
| 695 |
|
} |
| 696 |
|
|
| 697 |
|
// Invalidate token if the user is no longer active |
| 698 |
|
if (!is_null($this->activeUser) && !$this->activeUser->isEnabled()) { |
| 699 |
|
$this->tokenProvider->invalidateToken($token); |
| 700 |
|
return false; |
| 701 |
|
} |
| 702 |
|
|
| 703 |
|
// If the token password is no longer valid mark it as such |
| 704 |
|
if ($this->manager->checkPassword($dbToken->getLoginName(), $pwd) === false) { |