Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
testing
  • Loading branch information
“craciun2” committed Mar 13, 2018
1 parent 21908a7 commit 15e4e8acb2cb6ccad27127c4923cb2af33f0f801
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
@@ -36,8 +36,7 @@
while(password != veriyPassword);
cout<< "encorou "<< password<<endl;
string ecryptedPassword = md5(password); // this is the funcition to encrypt the password, tha that i did some research about it ITS NOT MINE
//updting the password
cout<< ecryptedPassword << endl;
//updting the password
auto cur = db.get_statement();
cur->set_sql( " UPDATE Player SET Password = ? WHERE Player_ID = ? ; " );
cur->prepare();
@@ -183,7 +182,8 @@
cout << "*******************************\n";
cout << " 1 - Personalize yourself"<< endl;
cout << " 2 - Change Password "<< endl;
cout << " 3 - Go Back"<< endl;
cout << " 3 - Show Details"<< endl;
cout << " 4 - Go Back"<< endl;

cout << " Enter your choice and press return: ";

@@ -214,14 +214,21 @@
}//end case 2 change password

case '3':{
PlayerInfo obj1;
obj1.printDetails(Player_ID, db);
goto MenuSettings;
break;

cout << " Choice 3 ";
}// end case 3 Go Back

case '4':{
goto MenuInGame;
break;

}// end case 3 Go Back



default:
{
cout << "Not a Valid Choice."<< endl;
BIN +0 Bytes (100%) ball.sqlite
Binary file not shown.
BIN +0 Bytes (100%) main_program
Binary file not shown.

0 comments on commit 15e4e8a

Please sign in to comment.