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 #11

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

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

@ghost ghost closed this as completed Oct 10, 2013
@ghost
Copy link
Author

ghost commented Oct 10, 2013

opened it twice! I apologise

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

No branches or pull requests

0 participants