hedera-web/rest/core/sync-user.php

18 lines
329 B
PHP
Raw Normal View History

2016-10-27 11:22:04 +00:00
<?php
include __DIR__.'/account.php';
/**
* Updates the user credentials on external systems like Samba, create
* home directory, create mailbox, etc.
**/
2018-05-23 10:14:20 +00:00
class SyncUser extends Vn\Web\JsonRequest {
2016-10-27 11:22:04 +00:00
const PARAMS = ['syncUser'];
2018-05-23 10:14:20 +00:00
function run($db) {
Account::sync($db, $_REQUEST['syncUser'], NULL);
2016-10-27 11:22:04 +00:00
return TRUE;
}
}