0
1
Fork 0

Merge pull request 'refs #5863 add echos in login' (!39) from 5863_service_add_echos2 into test

Reviewed-on: verdnatura/hedera-web#39
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Javi Gallego 2023-07-11 11:57:09 +00:00
commit 9475c26663
3 changed files with 7 additions and 7 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (23.6.16) stable; urgency=low
hedera-web (23.6.17) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "23.6.16",
"version": "23.6.17",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -150,8 +150,8 @@ abstract class Service {
if (!empty($_GET['access_token']))
$token = $_GET['access_token'];
echo "Start login logs\n";
echo "_SERVER_HTTP_AUTHORIZATION: " . $_SERVER['HTTP_AUTHORIZATION'] . " _GET_Access_token: " . $_GET['access_token'] . "EndLine\n";
error_log("Start login logs\n");
error_log("_SERVER_HTTP_AUTHORIZATION: " . $_SERVER['HTTP_AUTHORIZATION'] . " _GET_Access_token: " . $_GET['access_token'] . "EndLine\n");
if (isset($token)) {
$userId = $db->getValue(
@ -182,7 +182,7 @@ abstract class Service {
throw new UserDisabledException();
}
echo "user: " . $user . "EndLine\n";
error_log("user: " . $user . "EndLine\n");
$db->query('CALL account.myUser_loginWithName(#)', [$user]);
$userChanged = !$anonymousUser
@ -191,8 +191,8 @@ abstract class Service {
$_SESSION['user'] = $user;
// Registering the user access
echo "SESSION_Access: " . $_SESSION['access'] . " _userChanged: " . $userChanged . " _SESSION_User: " . $_SESSION['user'] . "EndLine\n";
echo "End login logs\n";
error_log("SESSION_Access: " . $_SESSION['access'] . " _userChanged: " . $userChanged . " _SESSION_User: " . $_SESSION['user'] . "EndLine\n");
error_log("End login logs\n");
if (isset($_SESSION['access']) && $userChanged)
$db->query(
'CALL visitUser_new(#, #)',