diff --git a/DBAppV2.cpp b/DBAppV2.cpp index b2108c1..17bc1ee 100755 --- a/DBAppV2.cpp +++ b/DBAppV2.cpp @@ -1,8 +1,24 @@ -#include +//#include +#include "User.h" using namespace std; -/* +vector users; + +// struct loginCredentials +// { + // string name; + // string password; + + // loginCredentials(string n, string p) + // { + // name = n; + // password = p; + // } + +// }; + + void yourAccount() { cout<<"*********************************"<>n; + + cout<<"\nPassword: "<>pass; + + cout<<"\nPhone: "<>phone; + + cout<<"\nFax: "<>fax; + + cout<<"Postal code: "<>postal; + + createNewAccount(n,pass,phone,fax,postal,false); + + cout<<"account successfully created!"<>name; + cin.clear(); + cin.ignore(); + + cout<<"\nPassword: "<>password; + cin.clear(); + cin.ignore(); + + if (verifyCredentials(name,password)) + { + break; + } + + else + { + cout<<"Invalid credentials!"<