fix client install comunication
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "view_loggin.h"
|
||||
#include "vista.h"
|
||||
#include "controlador.h"
|
||||
#include "view_install.h"
|
||||
#include "controller_install.h"
|
||||
|
||||
#include <gtkmm/messagedialog.h>
|
||||
|
||||
view_loggin::view_loggin(conexion *con):box_user(Gtk::ORIENTATION_HORIZONTAL), box_pass(Gtk::ORIENTATION_HORIZONTAL),button("check"), box(Gtk::ORIENTATION_VERTICAL)
|
||||
view_loggin::view_loggin(session_manager *sesi):box_user(Gtk::ORIENTATION_HORIZONTAL), box_pass(Gtk::ORIENTATION_HORIZONTAL),button("check"), box(Gtk::ORIENTATION_VERTICAL)
|
||||
{
|
||||
|
||||
this->set_title("loggin");
|
||||
this->con=con;
|
||||
this->sesi=sesi;
|
||||
set_border_width(5);
|
||||
|
||||
this->user.set_text("user");
|
||||
@@ -41,7 +41,7 @@ void view_loggin::on_button_clicked(){
|
||||
std::string user=this->entry_user.get_text();//this->m_refTextBufferUser->get_text();
|
||||
std::string pass=this->entry_pass.get_text();//this->m_refTextBufferPass->get_text();
|
||||
|
||||
if(con->check_pass(user,pass)){
|
||||
if(sesi->loggin(user, pass)){
|
||||
this->login=true;
|
||||
this->hide();
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user