mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Trim the user/email provided for password resets
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
parent
636c2415cc
commit
203b9131ec
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ class LostController extends Controller {
|
|||
|
||||
// FIXME: use HTTP error codes
|
||||
try {
|
||||
$this->sendEmail($user);
|
||||
$this->sendEmail(trim($user));
|
||||
} catch (ResetPasswordException $e) {
|
||||
// Ignore the error since we do not want to leak this info
|
||||
$this->logger->warning('Could not send password reset email: ' . $e->getMessage());
|
||||
|
|
|
|||
Loading…
Reference in a new issue