ajout modif besnik du 4 mars
Some checks are pending
Deploy production (servyass) / deploy (push) Waiting to run
Some checks are pending
Deploy production (servyass) / deploy (push) Waiting to run
This commit is contained in:
parent
0f70b82e4b
commit
2cb4def949
5 changed files with 220 additions and 157 deletions
|
|
@ -46,12 +46,19 @@
|
|||
|
||||
|
||||
$arrUser = $rqPrep->fetch();
|
||||
if (password_verify($strPwd, $arrUser['user_password'])){
|
||||
unset($arrUser['user_password']);
|
||||
return $arrUser;
|
||||
}else{
|
||||
if ($arrUser === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (empty($arrUser['user_password'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!password_verify($strPwd, $arrUser['user_password'])) {
|
||||
return false;
|
||||
}
|
||||
unset($arrUser['user_password']);
|
||||
return $arrUser;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue