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.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.406.50",
|
||||
"version": "1.406.51",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -27,10 +27,18 @@ class Account {
|
|||
self::sambaSync($db, $userName, $password);
|
||||
}
|
||||
|
||||
$db->query(
|
||||
'UPDATE account.user SET sync = TRUE WHERE name = #',
|
||||
$userId = $db->getValue(
|
||||
'SELECT id FROM account.user WHERE `name` = #',
|
||||
[$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