|
@@ 619-622 (lines=4) @@
|
| 616 |
|
$this->userSyncService->createOrSyncAccount($uid, $backend); |
| 617 |
|
|
| 618 |
|
$user = $this->manager->get($uid); |
| 619 |
|
if ($user === null) { |
| 620 |
|
$this->manager->emit('\OC\User', 'failedLogin', [$uid]); |
| 621 |
|
return false; |
| 622 |
|
} |
| 623 |
|
|
| 624 |
|
if ($user->isEnabled()) { |
| 625 |
|
$this->setUser($user); |
|
@@ 488-491 (lines=4) @@
|
| 485 |
|
return $this->emittingCall(function () use (&$uid, &$password) { |
| 486 |
|
$this->manager->emit('\OC\User', 'preLogin', [$uid, $password]); |
| 487 |
|
$user = $this->manager->checkPassword($uid, $password); |
| 488 |
|
if ($user === false) { |
| 489 |
|
$this->manager->emit('\OC\User', 'failedLogin', [$uid]); |
| 490 |
|
return false; |
| 491 |
|
} |
| 492 |
|
|
| 493 |
|
if ($user->isEnabled()) { |
| 494 |
|
$this->setUser($user); |