Last post Apr 07, 2013 10:41 PM by Abhishek Luv
Apr 04, 2013 08:29 AM|sagarmatha|LINK
Dear all I have setup a website using web pages. I would like user to be logged in after registration without having email verification, how can i make it happen ? I am asking this because my smtp is set up as WebMail.SmtpServer = "smtp.gmail.com"; and verification
email either doesn't go to hotmil or live email or go very late, so it could be frustration for users. It goes to gmail quickly though,
So i decided that user could login without email verification, pls help me to do it. Thanks
Apr 04, 2013 09:16 AM|wavemaster|LINK
Revert back to not having an smtp server defined.
Apr 04, 2013 09:29 AM|sagarmatha|LINK
Thanks wavemaster, so does that mean i should delete the following lines in _AppStart.html ?
WebMail.SmtpServer = "smtp.gmail.com";
WebMail.EnableSsl = true;
WebMail.SmtpPort = 587;
WebMail.UserName = "";
WebMail.Password = "";
WebMail.From = "";
What if email varification is not required but email needed for forget password ?
Apr 04, 2013 09:37 AM|wavemaster|LINK
In Register.cshtml look for these two lines of code:
bool requireEmailConfirmation = !WebMail.SmtpServer.IsEmpty();
You will need to rewrite that.
Apr 07, 2013 10:41 PM|Abhishek Luv|LINK
Just make this change in the Register.cshtml page.
bool requireEmailConfirmation = false.