Form->create('User', array('novalidate' => true));?>
Form->input('email', [ 'disabled' => !$canChangeLogin, 'data-disabled-reason' => !$canChangePassword ? __('User login change is disabled on this instance') : '', ]); ?>
Form->input('external_auth_required', array('type' => 'checkbox', 'label' => h($userType) . ' user')); } echo sprintf( '
%s
', ( ( !empty(Configure::read('Plugin.CustomAuth_required')) && !empty(Configure::read('Plugin.CustomAuth_enable')) ) ? '' : sprintf('id="externalAuthDiv"') ), $this->Form->input('external_auth_key', array('type' => 'text')) ); } ?>
Form->input('enable_password', [ 'type' => 'checkbox', 'label' => __('Set password'), 'disabled' => !$canChangePassword, 'data-disabled-reason' => !$canChangePassword ? __('User password change is disabled on this instance') : '', ]); ?>
' . __('Length') .': ' . h($length) . '
'; $passwordPopover .= '' . __('Complexity') .': ' . h($complexity); echo $this->Form->input('password', array( 'label' => __('Password') . ' ' )); echo $this->Form->input('confirm_password', array('type' => 'password', 'div' => array('class' => 'input password required'))); ?>
Form->input('org_id', array( 'options' => $orgs, 'label' => __('Organisation'), )); } echo $this->Form->input('role_id', array( 'label' => __('Role'), 'div' => empty(Configure::read('Security.advanced_authkeys')) ? null : 'input clear' )); if (empty(Configure::read('Security.advanced_authkeys'))) { $authkeyLabel = __('Authkey') . ' ' . __('(Reset)') . ''; echo $this->Form->input('authkey', array('disabled' => true, 'div' => 'input clear', 'label' => $authkeyLabel)); } echo $this->Form->input('nids_sid', ['label' => __('NIDS SID')]); ?> Form->input('gpgkey', array('label' => __('PGP key'), 'div' => 'clear', 'class' => 'input-xxlarge', 'placeholder' => __('Paste the user\'s PGP key here or try to retrieve it from the CIRCL key server by clicking on "Fetch PGP key" below.'))); ?>
Form->input('certif_public', array('label' => __('S/MIME Public certificate (PEM format)'), 'div' => 'clear', 'class' => 'input-xxlarge', 'placeholder' => __('Paste the user\'s S/MIME public key in PEM format here.'))); } echo '
'; echo $this->Form->input('termsaccepted', array('type' => 'checkbox', 'label' => __('Terms accepted'))); echo $this->Form->input('change_pw', [ 'type' => 'checkbox', 'label' => __('User must change password'), 'disabled' => !$canChangePassword, 'data-disabled-reason' => !$canChangePassword ? __('User password change is disabled on this instance') : '', ]); echo $this->Form->input('autoalert', array('label' => __('Receive email alerts when events are published'), 'type' => 'checkbox')); echo $this->Form->input('contactalert', array('label' => __('Receive email alerts from "Contact reporter" requests'), 'type' => 'checkbox')); echo $this->Form->input('disabled', array('type' => 'checkbox', 'label' => __('Immediately disable this user account'))); echo '
'; ?>
Form->input('notification_daily', array('label' => __('Daily notifications'), 'type' => 'checkbox')); echo $this->Form->input('notification_weekly', array('label' => __('Weekly notifications'), 'type' => 'checkbox')); echo $this->Form->input('notification_monthly', array('label' => __('Monthly notifications'), 'type' => 'checkbox')); ?>
 
Form->input('current_password', array('type' => 'password', 'div' => false, 'class' => 'input password required', 'label' => __('Confirm with your current password'))); } ?>
Form->button(__('Edit user'), array('class' => 'btn btn-primary')); echo $this->Form->end(); echo $this->Form->create('User', array( 'url' => array('controller' => 'users', 'action' => 'resetauthkey', $id), 'id' => 'resetAuthKeyForm' )); echo $this->Form->end(); ?>
element('/genericElements/SideMenu/side_menu', array('menuList' => 'admin', 'menuItem' => 'editUser')); ?>