/[projects]/misc/checkuser/cpp/main.cpp
ViewVC logotype

Contents of /misc/checkuser/cpp/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download)
Wed Sep 16 20:13:41 2009 UTC (14 years, 8 months ago) by torben
File size: 217 byte(s)
Added some old code for storage/ reference


1 #include <iostream>
2 #include "stdpam.h"
3
4
5 using namespace std;
6
7 int main(int argc, char *argv[])
8 {
9 StdPam pam;
10 if ( pam.checkUser() )
11 cout << "Auth OK" << endl;
12 else
13 cout << "Auth failed" <<endl;
14 return 0;
15 }

  ViewVC Help
Powered by ViewVC 1.1.20