Skip to content

Commit d31de2f

Browse files
committed
email always lowercase
1 parent 629fa4a commit d31de2f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

application/controllers/Login.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function loginMe()
6060
}
6161
else
6262
{
63-
$email = $this->security->xss_clean($this->input->post('email'));
63+
$email = strtolower($this->security->xss_clean($this->input->post('email')));
6464
$password = $this->input->post('password');
6565

6666
$result = $this->login_model->loginMe($email, $password);
@@ -130,7 +130,7 @@ function resetPasswordUser()
130130
}
131131
else
132132
{
133-
$email = $this->security->xss_clean($this->input->post('login_email'));
133+
$email = strtolower($this->security->xss_clean($this->input->post('login_email')));
134134

135135
if($this->login_model->checkEmailExist($email))
136136
{
@@ -214,7 +214,7 @@ function createPasswordUser()
214214
{
215215
$status = '';
216216
$message = '';
217-
$email = $this->input->post("email");
217+
$email = strtolower($this->input->post("email"));
218218
$activation_id = $this->input->post("activation_code");
219219

220220
$this->load->library('form_validation');

application/controllers/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function addNewUser()
124124
else
125125
{
126126
$name = ucwords(strtolower($this->security->xss_clean($this->input->post('fname'))));
127-
$email = $this->security->xss_clean($this->input->post('email'));
127+
$email = strtolower($this->security->xss_clean($this->input->post('email')));
128128
$password = $this->input->post('password');
129129
$roleId = $this->input->post('role');
130130
$mobile = $this->security->xss_clean($this->input->post('mobile'));
@@ -206,7 +206,7 @@ function editUser()
206206
else
207207
{
208208
$name = ucwords(strtolower($this->security->xss_clean($this->input->post('fname'))));
209-
$email = $this->security->xss_clean($this->input->post('email'));
209+
$email = strtolower($this->security->xss_clean($this->input->post('email')));
210210
$password = $this->input->post('password');
211211
$roleId = $this->input->post('role');
212212
$mobile = $this->security->xss_clean($this->input->post('mobile'));

0 commit comments

Comments
 (0)