diff --git a/ReadMe.txt b/ReadMe.txt index f3e4163ebd622507c6aeacefac1693ef06677ed2..022267ebe2061d46a3380ea68246c12477196829 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 37f29e6c1d36e233b7c126d250428f3ba13c48f1..728c3e41b6e09670a5288ae4d06f0de3ff5decbe 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");