forked from verdnatura/hedera-web
Password syncronization fixes
This commit is contained in:
parent
55b5409624
commit
46f0420431
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.406.50) stable; urgency=low
|
hedera-web (1.406.51) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.406.50",
|
"version": "1.406.51",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -27,10 +27,18 @@ class Account {
|
||||||
self::sambaSync($db, $userName, $password);
|
self::sambaSync($db, $userName, $password);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->query(
|
$userId = $db->getValue(
|
||||||
'UPDATE account.user SET sync = TRUE WHERE name = #',
|
'SELECT id FROM account.user WHERE `name` = #',
|
||||||
[$userName]
|
[$userName]
|
||||||
);
|
);
|
||||||
|
$db->query(
|
||||||
|
'CALL account.user_syncPassword(#, #)',
|
||||||
|
[$userId, $password]
|
||||||
|
);
|
||||||
|
$db->query(
|
||||||
|
'UPDATE account.user SET sync = TRUE WHERE id = #',
|
||||||
|
[$userId]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue