M
mazdotnet
Hi all,
I just found out that ASP.NET membership does not have a method to
lock accounts (only Unlock user)
See http://forums.asp.net/p/825946/825946.aspx
Question was 'I understand that the MembershipUser.UnlockUser method
will unlock an account (set the aspnet_Membership IsLockedOut back to
0 so on), but I see no way to Set LockUser. Is there nothing built in
to Membership to do this? '
A user responsed 'No, you have to create your own method that will
lock the user. '. I haven't done much inheritance coding... What's
the
best way of doing this? Do I create a new class that inherits from
Membership? Can you please show me a sample code? I would do it by
creating a class ex. ManageUser and add method 'LockUser' but from my
understanding it's better to extend the current Membership class and
add the new method. If you can sort of map out the main class
structure that would be perfect.
Thx
M.
I just found out that ASP.NET membership does not have a method to
lock accounts (only Unlock user)
See http://forums.asp.net/p/825946/825946.aspx
Question was 'I understand that the MembershipUser.UnlockUser method
will unlock an account (set the aspnet_Membership IsLockedOut back to
0 so on), but I see no way to Set LockUser. Is there nothing built in
to Membership to do this? '
A user responsed 'No, you have to create your own method that will
lock the user. '. I haven't done much inheritance coding... What's
the
best way of doing this? Do I create a new class that inherits from
Membership? Can you please show me a sample code? I would do it by
creating a class ex. ManageUser and add method 'LockUser' but from my
understanding it's better to extend the current Membership class and
add the new method. If you can sort of map out the main class
structure that would be perfect.
Thx
M.