1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Used to strtolower for email addresses

This commit is contained in:
Hillel Coren 2014-02-09 17:38:50 +02:00
parent aea7113a24
commit 266b66eb14
3 changed files with 5 additions and 5 deletions

View File

@ -280,7 +280,7 @@ class AccountController extends \BaseController {
} }
else if ($field == Contact::$fieldEmail && !$contact->email) else if ($field == Contact::$fieldEmail && !$contact->email)
{ {
$contact->email = $value; $contact->email = strtolower($value);
} }
} }
@ -500,7 +500,7 @@ class AccountController extends \BaseController {
$user->first_name = trim(Input::get('first_name')); $user->first_name = trim(Input::get('first_name'));
$user->last_name = trim(Input::get('last_name')); $user->last_name = trim(Input::get('last_name'));
$user->username = trim(Input::get('email')); $user->username = trim(Input::get('email'));
$user->email = trim(Input::get('email')); $user->email = trim(strtolower(Input::get('email')));
$user->phone = trim(Input::get('phone')); $user->phone = trim(Input::get('phone'));
$user->save(); $user->save();
@ -550,7 +550,7 @@ class AccountController extends \BaseController {
$user = Auth::user(); $user = Auth::user();
$user->first_name = trim(Input::get('new_first_name')); $user->first_name = trim(Input::get('new_first_name'));
$user->last_name = trim(Input::get('new_last_name')); $user->last_name = trim(Input::get('new_last_name'));
$user->email = trim(Input::get('new_email')); $user->email = trim(strtolower(Input::get('new_email')));
$user->password = trim(Input::get('new_password')); $user->password = trim(Input::get('new_password'));
$user->password_confirmation = trim(Input::get('new_password')); $user->password_confirmation = trim(Input::get('new_password'));
$user->registered = true; $user->registered = true;

View File

@ -207,7 +207,7 @@ class ClientController extends \BaseController {
$record = Contact::createNew(); $record = Contact::createNew();
} }
$record->email = trim($contact->email); $record->email = trim(strtolower($contact->email));
$record->first_name = trim($contact->first_name); $record->first_name = trim($contact->first_name);
$record->last_name = trim($contact->last_name); $record->last_name = trim($contact->last_name);
$record->phone = trim($contact->phone); $record->phone = trim($contact->phone);

View File

@ -74,7 +74,7 @@ class ClientRepository
$contact = Contact::createNew(); $contact = Contact::createNew();
} }
$contact->email = trim($record['email']); $contact->email = trim(strtolower($record['email']));
$contact->first_name = trim($record['first_name']); $contact->first_name = trim($record['first_name']);
$contact->last_name = trim($record['last_name']); $contact->last_name = trim($record['last_name']);
$contact->phone = trim($record['phone']); $contact->phone = trim($record['phone']);