clean code
This commit is contained in:
parent
ddbc3e12d2
commit
e750cf21e9
@ -64,14 +64,11 @@ class ClassUser {
|
|||||||
$message['translation_code'] = 'messageLogin_accountNotActivated';
|
$message['translation_code'] = 'messageLogin_accountNotActivated';
|
||||||
return $message;
|
return $message;
|
||||||
} else if(isset($row['email'])){
|
} else if(isset($row['email'])){
|
||||||
echo "elif";
|
|
||||||
unset($_SESSION['features']);
|
unset($_SESSION['features']);
|
||||||
$_SESSION['features'] = $this->getFeatures($row['id']);
|
$_SESSION['features'] = $this->getFeatures($row['id']);
|
||||||
echo "features: ";
|
|
||||||
$row['state'] = 'success';
|
$row['state'] = 'success';
|
||||||
return $row;
|
return $row;
|
||||||
} else{
|
} else{
|
||||||
echo "else";
|
|
||||||
$message['state'] = 'bad_login_or_password';
|
$message['state'] = 'bad_login_or_password';
|
||||||
$message['css_class'] = 'failed-message';
|
$message['css_class'] = 'failed-message';
|
||||||
//FIX translate this message
|
//FIX translate this message
|
||||||
|
Loading…
Reference in New Issue
Block a user