diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-04-05 11:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 11:36:53 +0200 |
commit | 5063b76c8ac41199c0a0cc088224d4ab0c1ae9b3 (patch) | |
tree | 1f203ffdcccf9f015fb64c9f05fbe7ee8b345ee2 | |
parent | bd0f374cfdf81a4f3e6d0a78b9947137a5697846 (diff) | |
parent | 9899b1247803432f87224a01022bafca5366a1b1 (diff) | |
download | nextcloud-server-5063b76c8ac41199c0a0cc088224d4ab0c1ae9b3.tar.gz nextcloud-server-5063b76c8ac41199c0a0cc088224d4ab0c1ae9b3.zip |
Merge pull request #37495 from joshtrichards/jr-trim-pw-reset-username
Trim the user/email provided for password resets
-rw-r--r-- | core/Controller/LostController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index 044535c345b..51ab8d85a6e 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -200,6 +200,8 @@ class LostController extends Controller { return new JSONResponse($this->error($this->l10n->t('Password reset is disabled'))); } + $user = trim($user); + \OCP\Util::emitHook( '\OCA\Files_Sharing\API\Server2Server', 'preLoginNameUsedAsUserName', |