/[marvin]/marvin/src/gui/identify_user.cc
ViewVC logotype

Diff of /marvin/src/gui/identify_user.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by castor_fou, Thu Sep 11 00:12:49 2003 UTC revision 1.2 by castor_fou, Thu Sep 11 14:08:43 2003 UTC
# Line 5  Line 5 
5  // Login   <castor@epita.fr>  // Login   <castor@epita.fr>
6  //  //
7  // Started on  Wed Aug 27 20:48:12 2003 C@stor  // Started on  Wed Aug 27 20:48:12 2003 C@stor
8  // Last update Wed Sep 10 00:18:32 2003 C@stor  // Last update Thu Sep 11 16:05:55 2003 C@stor
9  //  //
10    
11  #include <iostream>  #include <iostream>
# Line 47  int c_list_user::identify_user() Line 47  int c_list_user::identify_user()
47        answer = get_stdin();        answer = get_stdin();
48        std::cout << std::endl;              std::cout << std::endl;      
49        tmp = atoi(answer.c_str());        tmp = atoi(answer.c_str());
50          _id_user = tmp;
51        //      std::cout << "#" << tmp << "#" << std::endl;        //      std::cout << "#" << tmp << "#" << std::endl;
52      }      }
53    while (tmp > (_list_user.size() - 1));    while (tmp > (_list_user.size() - 1));
54      std::cout << "utilisateur choisi : " << _list_user[tmp]->get_name_user() << std::endl;
55    if (check_password(_list_user[tmp]->get_password()->get_passphrase()))    if (check_password(_list_user[tmp]->get_password()->get_passphrase()))
56      return 1;      return 1;
57    return 0;    return 0;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26