mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #37495 from joshtrichards/jr-trim-pw-reset-username
Trim the user/email provided for password resets
This commit is contained in:
commit
5063b76c8a
1 changed files with 2 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue