Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing feature to allow disabling users accounts #69

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 10up-experience.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function( $plugin_info, $http_response = null ) {
API\API::instance()->setup();
Authentication\Passwords::instance()->setup();
Authentication\Usernames::instance()->setup();
Authentication\DisableUsers::instance()->setup();
Authors\Authors::instance()->setup();
Gutenberg\Gutenberg::instance()->setup();
Headers\Headers::instance()->setup();
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@

By default, all users must use a medium or greater strength password. This can be turned off in general settings (or network settings if network activated). Reserved usernames such as `admin` are prevented from being used.

In addition to the above restrictions, this plugin also offer the ability to disable user accounts without removing the account itself.

It also supports automatically disabling inactive users who haven't logged in a certain amount of days. Use the following filters to control this functionality:

```php
// enables disabling inactive users automatically.
add_filter( 'tenup_experience_enable_disable_inactive_users', '__return_true' );
// controls the number of days without activity to disable an user account. default is 60.
add_filter( 'tenup_experience_disable_user_inactivity_threshold', function() { return 30; } );
```

**NOTE**: the user is only set to the "disabled" status after trying to login, so even though an user who hasn't logged in past the inactivity threshold doesn't show as disabled it is effectively not able to log in anymore.

* __Headers__

`X-Frame-Origins` is set to `sameorigin` to prevent click jacking.
Expand Down
Loading