add normal user restrictions

This commit is contained in:
2020-05-26 18:48:31 +02:00
parent b0c78dde76
commit df772fec57
4 changed files with 18 additions and 0 deletions

View File

@@ -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{