Commit 37e56cf9 authored by Seblu's avatar Seblu
Browse files

Le login/pass ne peut etre vide

parent 8c9bb4fb
Loading
Loading
Loading
Loading
+24 −21
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ void Screen::login() {
  int size;
  const char *smsg;

  do {
    clear();
    box(stdscr, 0,0);
    move(1, 1);
@@ -115,9 +116,11 @@ void Screen::login() {
    refresh();
    getnstr(buf, size);
    buf[size] = 0;
  O.login = buf;
    O.pass = buf;
    delete [] buf;
  }
  while (O.login.empty() || O.pass.empty());
}

/*!
** Switch in dialog window mode