Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yankova, Liliya (UG - Computer Science)
advanced_coursework
Commits
8e0e3958
Commit
8e0e3958
authored
May 28, 2021
by
Yankova, Liliya (UG - Computer Science)
Browse files
Linking login service to order
parent
756cad6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ReadMe.txt
View file @
8e0e3958
...
...
@@ -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
php/login.php
View file @
8e0e3958
...
...
@@ -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:80
0
0/
page2.php
"
);
header
(
"Location: http://localhost:80
8
0/
{
$username
}
"
);
}
else
{
echo
'<script>
alert("Wrong password");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment