mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-31 15:19:36 +02:00
banned customers cannot login
This commit is contained in:
parent
d84cf96d01
commit
9521e96495
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ switch ($do) {
|
||||||
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||||
if ($d) {
|
if ($d) {
|
||||||
$d_pass = $d['password'];
|
$d_pass = $d['password'];
|
||||||
|
if($d['status'] != 'Banned'){
|
||||||
|
_alert(Lang::T('This account status').' : '.Lang::T($c['status']),'danger', "");
|
||||||
|
}
|
||||||
if (Password::_uverify($password, $d_pass) == true) {
|
if (Password::_uverify($password, $d_pass) == true) {
|
||||||
$_SESSION['uid'] = $d['id'];
|
$_SESSION['uid'] = $d['id'];
|
||||||
User::setCookie($d['id']);
|
User::setCookie($d['id']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue