mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
save email as lower case
email addresses are case insensitive Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
fcac433f57
commit
381f183d4a
1 changed files with 2 additions and 1 deletions
|
|
@ -368,6 +368,7 @@ class UsersController extends Controller {
|
|||
$twitter,
|
||||
$twitterScope
|
||||
) {
|
||||
$email = strtolower($email);
|
||||
if (!empty($email) && !$this->mailer->validateMailAddress($email)) {
|
||||
return new DataResponse(
|
||||
[
|
||||
|
|
@ -447,7 +448,7 @@ class UsersController extends Controller {
|
|||
}
|
||||
}
|
||||
$oldEmailAddress = $user->getEMailAddress();
|
||||
$oldEmailAddress = is_null($oldEmailAddress) ? '' : $oldEmailAddress;
|
||||
$oldEmailAddress = is_null($oldEmailAddress) ? '' : strtolower($oldEmailAddress);
|
||||
if (isset($data[AccountManager::PROPERTY_EMAIL]['value'])
|
||||
&& $oldEmailAddress !== $data[AccountManager::PROPERTY_EMAIL]['value']
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue