Skip to content

Commit

Permalink
added LDAP setting that will send disabled users to a trash ou
Browse files Browse the repository at this point in the history
  • Loading branch information
MelonSmasher committed Aug 31, 2017
1 parent f8eb93e commit fb6c4b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Backend/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getSettings()
$checked_delete_users = ($ldap_delete_users) ? 'checked' : '';
$ldap_duties_map_to_ou = Settings::get('ldap-duties-map-to-ou', true);
$ldap_use_trash_ou = Settings::get('ldap-use-trash-ou', true);
$checked_ldap_use_trash_ou = ($ldap_use_trash_ou) ? 'checked' : '';
$checked_duties_map_to_ou = ($ldap_duties_map_to_ou) ? 'checked' : '';
$ldap_home_drive_letter = Settings::get('ldap-home-drive-letter', '');
$ldap_home_drive_path = Settings::get('ldap-home-drive-path-pattern', '');
Expand Down Expand Up @@ -65,7 +66,8 @@ public function getSettings()
'ldap_home_drive_letter' => $ldap_home_drive_letter,
'ldap_home_drive_path' => $ldap_home_drive_path,
'ldap_email_domain' => $ldap_email_domain,
'ldap_use_trash_ou' => (int)$ldap_use_trash_ou
'ldap_use_trash_ou' => (int)$ldap_use_trash_ou,
'checked_ldap_use_trash_ou' => $checked_ldap_use_trash_ou
]);
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/backend/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<div class="col-md-6">
<div class="material-switch pull-left">
<input type="checkbox" id="ldap_use_trash_ou" name="ldap_use_trash_ou"
value="{{$ldap_use_trash_ou}}" {{$ldap_use_trash_ou}}>
value="{{$ldap_use_trash_ou}}" {{$checked_ldap_use_trash_ou}}>
<label for="ldap_use_trash_ou" class="label-primary"></label>
</div>
<div class="text-center">
Expand Down

0 comments on commit fb6c4b9

Please sign in to comment.