Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
few changes
  • Loading branch information
“craciun2” committed Mar 14, 2018
1 parent 15e4e8a commit e938d58a76975ee50f462398a38e777c78465246
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
@@ -34,7 +34,6 @@
cin >> veriyPassword ;
}
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
auto cur = db.get_statement();
@@ -46,7 +45,7 @@
int result= cur->step();
if (result == 0)
{
cout<<"Password Updated Sucessful"<<endl;
cout<<"Password Updated Successful"<<endl;
}
else
{
@@ -86,7 +85,7 @@
int result= cur->step();
if (result == 0)
{
cout<<"Details Updated Sucessful"<<endl;
cout<<"Details Updated Successful"<<endl;
}
else
{
@@ -59,15 +59,15 @@ char menuu()


cin >> choice;

} // end of do while
while (choice >'5' || choice<'0' );

while (choice >'5' || choice<'0' );
if (choice == '1')
switch (choice)
{
case '1':
{
logs:

string username, password, ecryptedPassword;
bool Blog = false;
// login part
@@ -95,13 +95,13 @@ char menuu()
int Player_ID = cur->get_int(0); // to get the playerID (unique identification on DB)

if (result == true){
cout<<"login Sucessful"<<endl;
cout<<"login Successful"<<endl;
MenuGame(Player_ID, db); // if the login sucesful it goes to the InGameMenu
return Player_ID; // returning to the main the Player ID
}
else{

cout<<"Username of password are wrong"<<endl << "Try Again" << endl;
cout<<"Username or password are wrong"<<endl << "Try Again" << endl;
goto logs;
} //end else case

@@ -119,7 +119,7 @@ char menuu()
case '2':
{
string username, email, password, veriyPassword, teamName, ecryptedPassword;

regist:
// login part
cout << "ID: ";
@@ -170,7 +170,7 @@ char menuu()
cur->bind( 2, email );
cur->bind( 3, ecryptedPassword );
cur->step();
cout<<"Registed Sucessful"<<endl;
cout<<"Registed Successful"<<endl;
cout<<endl<<endl;

//to get the Player_ID (unique identification on database)
@@ -210,11 +210,13 @@ char menuu()
}

case '3':

cout << "Group E7"<< endl;
cout << "Gheorghe Craciun"<< endl;
goto MainMenu;
break;
case '4':

cout << "End of Program."<< endl;
break;
default:
@@ -10,17 +10,10 @@ This is the link, everyone has something assingned, you should do what is assign


Mysql password root user password is 'codio'

git config --global user.name "craciun2"


git status

git add .

git commit -m "Messagem"


git push origin master

git checkout - to check if its up to date
BIN +0 Bytes (100%) ball.sqlite
Binary file not shown.
BIN +0 Bytes (100%) main_program
Binary file not shown.

0 comments on commit e938d58

Please sign in to comment.