Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2007, 07:47 PM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Locking Users Out

Hi All,

I've got a question about locking users out.

On the admin/editUser page, the checkbox is available for IsLockedOut. If the user is not locked out, the checkbox is disabled. If the user is locked out, the checkbox is enabled and admins can unlock the user. So how do you go about actually locking a user out.

In the book it is simply stated that "users can't be locked out from here", but it gives no leads on how to actually allow admins to lock a user out.

I've looked through the Membership object methods and no 'LockUser' method exists, only 'UnlockUser'. Certainly this must be possible, but from where?

Thanks

Also, does it seem a little short sighted of Microsoft to only provide half of this functionality through the Membership object to anyone else? What is so special about locking a user that it wouldn't be included as a method?
 
Old June 26th, 2007, 02:54 PM
FT FT is offline
Authorized User
 
Join Date: Oct 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi in the webconfig you have this line of code

maxInvalidPasswordAttempts="5"

And this means that if a user logs on 5 times with incorrect information he will be LockOut.

So that is what it is used for.
 
Old June 26th, 2007, 06:16 PM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FT, thanks for the reply, but it's not quite what I'm looking for..

I understand the method you described, but what I'm looking for is being able to lock a user out manually as an Administrator.

Say you have some guy spamming up your boards or posting things you don't want posted, like porn or adverts, et al, how do you go about locking that guy out? Incorrectly logging as his userName 5 times?
See what I mean? Certainly there has to be a way to set up manual user locking for the admins.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Locking dancook Access VBA 2 November 7th, 2006 11:38 AM
Record locking Stanny Access 1 February 11th, 2006 12:57 PM
Locking down a table lryckman Access 6 March 1st, 2004 08:50 AM
Locking Peter Riley SQL Server ASP 3 June 5th, 2003 07:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.