Commit 8e0e3958 authored by Yankova, Liliya (UG - Computer Science)'s avatar Yankova, Liliya (UG - Computer Science)
Browse files

Linking login service to order

parent 756cad6d
......@@ -19,8 +19,4 @@ To stop the containers - docker-compose down
For user service database:
mysql -u root -puserRoot -h127.0.0.1 -P9906 -> root user
mysql -u service_user -pservice_user -h127.0.0.1 -P9906 -> service_user
For recipe service database:
mysql -u root -preciperoot -h127.0.0.1 -P9907 -> root user
mysql -u recipe_user -precipe_user -h127.0.0.1 -P9907 -> recipe_user
mysql -u service_user -pservice_user -h127.0.0.1 -P9906 -> service_user
\ No newline at end of file
......@@ -19,7 +19,7 @@
//Checks the password against the one in the database
if(password_verify($password, $user->password) ) {
$_SESSION['ID'] = $user->ID;
header("Location: http://localhost:8000/page2.php");
header("Location: http://localhost:8080/{$username}");
} else{
echo '<script>
alert("Wrong password");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment