Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

[suggestion] Suspend a user, Search For a Suspended user, Suspend for a certain amount of time #12

Closed
ghost opened this issue Oct 10, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 10, 2013

Looking through Sentry 2 Docs I saw that you can suspend a user too.

So you could:

  • Suspend a User for ever until you manually unsuspend it

    // Find the user using the user id
    $throttle = Sentry::findThrottlerByUserId($userID);
    
    // Suspend the user
    $throttle->suspend();
  • Suspend a User for a certain amount of time

    $throttle = Sentry::findThrottlerByUserId($userID);
    
    $throttle->setSuspensionTime($amountOfTime);

Also you could add in index-user.blade.php something like this:

<div class="form-group">
        <label for="suspendedSearch">Suspended</label>
        <select class="form-control" id="suspendedSearch" name="suspendedSearch">
                    <option>--</option>
                    <option value="0">No</option>
                    <option value="1">Yes</option>
                    </select>
</div>

What do you think?

screenshot 2013-10-10 14 54 18

@MrJuliuss
Copy link
Owner

Hello,

Good idea, i add this feature in my todolist ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant