Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no 'suspension' as such in the Membership Provider; however, there are two properties that will affect the ability of a user to login to the system:</p> <p>In the <strong><a href="http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.aspx" rel="nofollow">MembershipUser</a></strong> class, let's look at:</p> <p><strong><a href="http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.islockedout.aspx" rel="nofollow">MembershipUser.IsLockedOut</a></strong>: This property indicates that a user has been locked out of the system by trying to log in with the incorrect password more than the allowed number of times. The web.config would have that number.</p> <p>Notice that you <strong>cannot</strong> explicitly lockout a user programmatically. Only a user herself can get locked out by trying incorrect passwords for her account.</p> <p><strong><a href="http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.isapproved.aspx" rel="nofollow">MembershipUser.IsApproved</a></strong>: You can approve or disapprove a user and that property will define whether a user can be authenticated or not. This is probably the equivalent to a Suspended user. You simply set the <code>MembershipUser.IsApproved</code> to false and update the user with the <code>MembershipProvider.UpdateUser(MembershipUser)</code> method. Conversely, you would set the property <code>IsApproved</code> to true if you want to allow the user to log in again.</p> <p>Hopefully, this will clarify the capabilities of the Membership provider, but it is strange to see that a user has been 'suspended' from the system due to inactivity. Are you sure it is not one of the two options discussed above?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload