forked from verdnatura/hedera-web
25 lines
426 B
PHP
25 lines
426 B
PHP
<?php
|
|
|
|
include __DIR__.'/account.php';
|
|
|
|
/**
|
|
* Sets the user password.
|
|
**/
|
|
class SetPassword extends Vn\Web\JsonRequest {
|
|
const PARAMS = [
|
|
'setUser'
|
|
,'setPassword'
|
|
];
|
|
|
|
function run($db) {
|
|
$setUser = $_REQUEST['setUser'];
|
|
$setPassword = $_REQUEST['setPassword'];
|
|
|
|
$db->query('CALL account.userSetPassword(#, #)',
|
|
[$setUser, $setPassword]);
|
|
Account::sync($db, $setUser, $setPassword);
|
|
return TRUE;
|
|
}
|
|
}
|
|
|