diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LostController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index befa1da6944..e7462180388 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -224,6 +224,12 @@ class LostController extends Controller { return new JSONResponse($this->error($this->l10n->t('Password reset is disabled'))); } + \OCP\Util::emitHook( + '\OCA\Files_Sharing\API\Server2Server', + 'preLoginNameUsedAsUserName', + ['uid' => &$user] + ); + // FIXME: use HTTP error codes try { $this->sendEmail($user); |