Can't Login to Housekeeping

Dec 7, 2016
65
5
I'm rank 11 and I'm trying to login to house-keeping but it says I don't have the right access level

Code:
if(isset($_POST['login']))
        {   
            $template->form->setData();
            unset($template->form->error);
            
            if(isset($template->form->username) && isset($template->form->password))
            {
                if($this->nameTaken($template->form->username))
                {     
                    if($this->userValidation($template->form->username, $core->hashed($template->form->password)))
                    {
                        if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 10)
                        {
                            $_SESSION["in_hk"] = true;

                            header("Location:".$_CONFIG['hotel']['url']."/ase/secure");
                            exit;
                        }
                        else
                        {
                            $template->form->error = 'Incorrect access level.';
                            return;
                        }
                    }
                    else
                    {
                        $template->form->error = 'Incorrect password.';
                        return;
                    }       
                }
                else
                {
                    $template->form->error = 'User does not exist.';
                    return;
                }
            }
    
            $template->form->unsetData();
        }
    }

Screenshot:
Screenie.png
 

Users who are viewing this thread

Top