Admin: Add group added to bulk user changes

This commit is contained in:
nathan 2024-06-28 15:33:09 -06:00
parent fdb9040f3f
commit 76ade7bc89
2 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,10 @@ class admin_passwordreset
{
if(($account = $GLOBALS['egw']->accounts->read($account_id)))
{
if($content['group'])
{
$GLOBALS['egw']->accounts->set_memberships(array_merge(array_keys($account['memberships']), $content['group']), $account_id);
}
if($content['random_pw'])
{
if(($minlength = $GLOBALS['egw_info']['server']['force_pwd_length']) < 8)

View File

@ -21,6 +21,7 @@
<row>
<groupbox id="actions">
<caption label="Actions"/>
<et2-select-account accountType="groups" id="group" label="Add to group" multiple="true"></et2-select-account>
<et2-checkbox label="Set a random password" id="random_pw"></et2-checkbox>
<et2-select-bool label="Must change password upon next login" id="mustchangepassword" emptyLabel="Leave unchanged"></et2-select-bool>
<et2-select-bool label="Can change password" id="changepassword" onchange="var mustchange=document.getElementById(form::name('mustchangepassword')); if (this.value=='0' &amp;&amp; mustchange.value) mustchange.value='0';" emptyLabel="Leave unchanged"></et2-select-bool>