Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "auth.hpp"
void operation(int option){
string new_password;
Authentication player1;
string username, password;
cout<<"Please enter the userName ";
cin>>username;
cout<<"Please enter the password ";
cin>>password;
switch(option){
case 1:
player1.loginValidation(username,password);
break;
case 2:
player1.new_user(username,password);
break;
case 3:
cout<<"Please enter the new password ";
cin>>new_password;
player1.change_password(username,password,new_password);
break;
case 4:
player1.delete_user(username, password);
break;
default:
cout<<"Cannot perform this please try again "<<endl;
}
return;
}
int main(){
int des;
cout<<"Please enter 1 for SignIn "<<endl;
cout<<"Please enter 2 for SignUp "<<endl;
cout<<"Please enter 3 for Change password "<<endl;
cout<<"Please enter 4 for Delete Account "<<endl;
cout<< "Please enter the desicion";
cin>>des;
system("clear");
operation(des);
return 0;
}