Approving New Users After Registration
Hi,
Can you please check the following topic:
http://www.sitefinity.com/devnet/forums/sitefinity-4-x/developing-with-sitefinity/implementing-custom-approval-deny-functionality-for-registered-users.aspx
I just replied there and I think this is exactly the functionality that you need.
Do i need to generate the custom registration widget for that in order to override the method??
Hi,
You can just change the type of the out-of-the-box widget, to use your custom class, but it is recommendable that you register it as a new control.
Kind regards,sorry i dont get you.Please bear with me!!
what does the meaning of out of the box widget??
so let me explain you what is my expectation.
when some one fill up the registration form and click on submit button,the admin(there will be more than one person) should get the email that you have one pending approval in sitefinity.
then admin should approve it.
Please note-there will be more than one admin so everybody should receive the email.
please correct me if i am wrong..the email will contain the link that admin should click in order to approve it correct???
can you please let me know the steps in detail(with related configuration in sitefinity).??
Thanks,
this is the last issue that i am struggling for the site.
Hello Rajesh,
By out-of-the-box widget, I mean the default widgets, the ones you get with a fresh installation of Sitefinity.
All you need is in the post that I sent you - you just need to inherit the RegistrationForm class and register the new class as a custom control. This can be done from Sitefinity's Backend, from Administration >> Settings >> Advanced >> Toolboxes >> Toolboxes >> PageControls >> Sections, then add a new section or use one of the defaults, then Tools >> CreateNew and Under Control CLR Type or Virtual Path you should enter Namespace.Class of your class (that inherits RegistrationForm) and you also need to enter Name and Title(could be whatever you want).
Hi Rajesh,
Unfortunately this won't be possible at the moment, because the method you need to override (for the sending of the e-mail) is not public and this is why I only change the e-mail of the user, so that it is sent to the admin instead.
Kind regards,hi Svetoslav,
Thanks for the quick response!!
here i am facing one more problem..
so i received the link in order to approve the user but when i click it and then enter the user pw for testing-it says"Incorrect pw/user combination"
here is the link that i received in my email..
http://xyz.com/member-login?user=bc5074b5-96ff-48fc-a145-f8b8e644cb19&provider=
it seems like provider is missing...how can i fix it in my case.
if i set the registration widget autometically approve the member-it works fine but when i select the send the approval option..it doent work..
am i missing something in configuration for custom registration??
public class Class1 : RegistrationForm
protected override void SendRegistrationConfirmationEmail(Telerik.Sitefinity.Security.Model.User user, Telerik.Sitefinity.Security.UserManager userManager)
user.Email = "admin@admin.com";
base.SendRegistrationConfirmationEmail(user, userManager);
Hi Rajesh,
Did you put an Account Activation widget on the page that you set for Landing page in your Registration widget designer? This widget needs to be on the page, so that when you click on the activation link, the account can be activated by it.
Kind regards,hi Svetoslav,
Thanks for the info..it works now..