From 1dd7571292ace6297de5ad8fdf057ea847fc9049 Mon Sep 17 00:00:00 2001 From: William Bracho Blok Date: Tue, 6 Oct 2015 00:00:26 -0500 Subject: [PATCH] Update DBAppV2.cpp --- DBAppV2.cpp | 142 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 136 insertions(+), 6 deletions(-) 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!"<