Epstone / Simple-MVC-User-Management

22 stars 12 forks source link

Locking out a user #2

Open tawright915 opened 12 years ago

tawright915 commented 12 years ago

Is there a way to lock out a user? I tried adding a LockUser function to the UserAccountServices:

public bool LockUser(string userName)
{

    _membership.GetUser(userName, false).IsApproved = false;

    return _membership.GetUser(userName, false).IsApproved;
}

But i'm not sure how I can access this in the view.

I can unlock someone but not lock them out.
Thanks tom