Skip to content
Snippets Groups Projects
Commit b93c35f2 authored by Till Brehm's avatar Till Brehm
Browse files

Enforce email addresses to be lower case when adding an email address via remote API.

parent 1dc4398e
No related branches found
No related tags found
No related merge requests found
Pipeline #3376 passed
......@@ -205,6 +205,9 @@ class remoting_mail extends remoting {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
// Email addresses must always be lower case
$params['email'] = strtolower($params['email']);
//* Check if mail domain exists
$email_parts = explode('@', $params['email']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment