Login with case-sensitive variations
This commit is contained in:
parent
5e9b34a40b
commit
deb28a33e3
@ -72,7 +72,7 @@ class AuthController extends ResourceController
|
|||||||
$data = $this->request->getJSON();
|
$data = $this->request->getJSON();
|
||||||
$user = $this->userModel->where('email', $data->email)->where('is_active',1)->first();
|
$user = $this->userModel->where('email', $data->email)->where('is_active',1)->first();
|
||||||
// print_r($user);die;
|
// print_r($user);die;
|
||||||
if (!$user) {
|
if (!$user || $user['email'] !== $data->email) {
|
||||||
return $this->failUnauthorized('Invalid email or password');
|
return $this->failUnauthorized('Invalid email or password');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user