add normal user restrictions
This commit is contained in:
@@ -20,6 +20,11 @@ bool session_manager::validate_pass(){
|
||||
std::string pass=buffer;
|
||||
if(this->data->get_passwd(user)==pass){
|
||||
this->write_data("pass");
|
||||
if(this->data->get_admin(user)){
|
||||
this->write_data("admin");
|
||||
}else{
|
||||
this->write_data("norma");
|
||||
}
|
||||
this->user=user;
|
||||
return true;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user