mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#1057 Login with mobile phone is not working
This commit is contained in:
parent
0e5a56730e
commit
21fb485467
@ -35,10 +35,8 @@ class ValidateCredentials
|
|||||||
|
|
||||||
//Is email or phone number
|
//Is email or phone number
|
||||||
if (!filter_var($credentials['email'], FILTER_VALIDATE_EMAIL)) {
|
if (!filter_var($credentials['email'], FILTER_VALIDATE_EMAIL)) {
|
||||||
if ($profile = $this->profile->findPhoneNumber($credentials['email'])) {
|
if ($user = $this->repository->findBy('gsm_phone', $credentials['email'])) {
|
||||||
if ($user = $this->repository->find($profile->user_id)) {
|
$credentials['email'] = $user->email;
|
||||||
$credentials['email'] = $user->email;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$response = $this->repository->findByCredentials($credentials);
|
$response = $this->repository->findByCredentials($credentials);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user