This project is read-only.
1
Vote

New users are automatically have "approved" status, how do I change it?

description

Hi,
 
I changed CreateUser Method to pass "false" as isApproved parameter but yet all users are still creates with "approved" status. How do I change it?

file attachments

comments

sunnychaganty wrote Dec 31, 2009 at 4:00 PM

Yeah - this is a bug in the implementation.
The way this would work is:
  • The user will register & approved status will be false. So, he will see a "register successful" message, but will not be able to login to the system till the admin approves the user
  • The admin will approve the user. Once approved, the user can only be deleted. There will be no "un-approve" functionality
  • The user will be able to login to the system since he is now approved
Attached, please find this implementation. Let me know if this works & I will merge this code into the v1.1 release.

Thanks!

wrote Dec 31, 2009 at 4:00 PM

wrote Dec 31, 2009 at 4:02 PM

patelpratikr wrote Nov 26, 2011 at 1:58 PM

It works fine!
I tried modifying the CreateUser() in MembershipProvider and set IsApproved flag to false. It creates the user with IsApproved set to false.

wrote Feb 13, 2013 at 10:19 PM

wrote Nov 29 at 8:31 AM