Security :: Disable New Accounts And Receive Email On Signup?
May 4, 2010
I am using forms authentication to protect a website and would like to set it so when someone uses the registration form that the account created is disabled and an email is sent to me notifying me of the new signup. Then I can go and enable the account.
I am very new to this but have gotten the basic registration form and login form working with my SQL 2008 Server but this is a bit above me and I have looked through the MSDN info on the CreateUserWizard and don't see options for this.
I tried googling this and have had no luck. I would like to implement membership roles without any reference to email accounts or smtp. Does anyone have information on this topic?
I'm trying to send an email when a new account is registered with the CreateUserWizzard but no email is being sent. I know my SMTP settings are correct because I have implemented a password recovery system that sends email fine. I added the OnSendingMail property to check and see if it is even trying to send mail by writing some test text to the screen but the sendingmail event isn't even firing. As far as I know all I need to do is insert the mail definition section and create a mail body file, which I have done.
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" OnSendingMail="CreateUserWizard1_SendingMail" LoginCreatedUser="False"> <MailDefinition From="noreply@noreply.com" Subject="Your Account Has Been Created" BodyFileName="test.txt"> </MailDefinition> Protected Sub CreateUserWizard1_SendingMail(ByVal sender As Object, ByVal e As EventArgs) Handles CreateUserWizard1.SendingMail Response.Write("mail is sending") End Sub
EDIT: apparently the code pasted funky in the insert code section so I repasted it plain text
I have create a website and i need to send/receive email from website . I am able to send email through system.net.mail namespace . But it needs an gmail id and password . I want to send email from my website like Username@mywebsite.com and also receive email from another domain like gmail.com . I didn't know how i can perform this task . I don't have a logic .
I am using the create user wizard to create users that are then placed in the ASPNETDB database. Is there a way to delete users in the same fashion? I am using Visual Studio 2008 VB.NET.
I am trying to remove a user account (I am using the default authentication system), but I can't find a class/method which does this. Is there a way to do this?
I have a Google Document in the following path.[URL] Once i click on the link i am directed to a page where google asks for the username/password of the above document.I had created a test username/password in gmail.which i can send to you all usgbctester@gmail.com and the password being usgbcpassword. I hav a button click event wherein i need to open the above link bypassing google asking for username and password.I should be able to hardcode the username and password in the button click event.
I am using the SQLMembershipProvider for authenicating users for my web site. I would like to change the default message that is displayed when a user signs in but who's account is disabled. By default, it shows:
Your account has not yet been approved. You cannot login until an administrator has approved your account.
Is there a property for the Login control that allows me to change this message programmatically.
I am using the Login control to create a new user. I have it where if the user adds and email address, then this automatically popuplates the username textbox with the email address. I want it where if they don't have an email address then the user can just create their own username instead.
But what happens is if they create a username, but the leave the email blank, a defined error message appears saying that an email must be provided. In the login control properties I have set the property RequireEmail to False but the message is still appearing.
Can anyone help me find out why the email is always required? I do have custom validators for other parts of the login, but have no validation set anywhere for the email.
I have developed simple user registeration application form in that after press submit button i am sending mail to user for welcome template as well as i am also get on mail for user details like name email id, and ip address.my problem is the user can receive the mail form my site but i am receive the any user details mail it doesnot shows any exception what is the problem i donno please
I developed a site for a client a couple of years ago. It uses the the standard ASP.NET Membership, authentication, etc. I just added the profile section with (2) fields: CustID AgntID. Now whenever I load the page with any Profile code in it I receive this error: Violation of UNIQUE KEY constraint 'IX_aspnet_Users'. Cannot insert duplicate key in object 'dbo.aspnet_Users'. The INSERT statement conflicted with the FOREIGN KEY constraint "FK__aspnet_Pr__UserI__3CA9F2BB". The conflict occurred in database "broo001", table "dbo.aspnet_Users", column 'UserId'. The statement has been terminated. The statement has been terminated. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_aspnet_Users'. Cannot insert duplicate key in object 'dbo.aspnet_Users'. The INSERT statement conflicted with the FOREIGN KEY constraint "FK__aspnet_Pr__UserI__3CA9F2BB". The conflict occurred in database "broo001", table "dbo.aspnet_Users", column 'UserId'. The statement has been terminated. The statement has been terminated. Source Error:
How do i set a limit for user to sign up in ASP.NET ?
For example, I'm creating a web application using Microsoft Visual Studio 2008 to make it available for users to sign up for the event. But i only wish to allow 10 people to sign up for that particular event.
So what code/thing i need to do to able to set the limit?
I am totally lost finding the right API to create a sign up process like Foursquare. I am attaching a document of what I am trying to do. I have already tried OAuth, JavascriptSDK, Facebook.NET API from Codeplex and FacebookToolkit.NET from Microsoft. Nothing looks what I actually need. I think some one experienced can lean me towards where I should go straight.
[URL]
Note: I am trying to achieve this via ASP.NET with C#.