From 8e0e3958bb448ccf9e065e069f6dd5d4d7af95f7 Mon Sep 17 00:00:00 2001 From: "Yankova, Liliya (UG - Computer Science)" <ly00240@surrey.ac.uk> Date: Fri, 28 May 2021 20:43:36 +0100 Subject: [PATCH] Linking login service to order --- ReadMe.txt | 6 +----- php/login.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index f3e4163..022267e 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -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 diff --git a/php/login.php b/php/login.php index 37f29e6..728c3e4 100644 --- a/php/login.php +++ b/php/login.php @@ -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"); -- GitLab