-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User registration email not validated #720 #1068
User registration email not validated #720 #1068
Conversation
Please resolve the conflicts |
@@ -14,8 +14,8 @@ public class EmailSender : IEmailSender | |||
public EmailSender(IConfiguration config) | |||
{ | |||
_emailConfig.SmtpServer = config.GetValue<string>("SmtpServer"); | |||
_emailConfig.SmtpUsername = config.GetValue<string>("SmtpUsername"); | |||
_emailConfig.SmtpPassword = config.GetValue<string>("SmtpPassword"); | |||
_emailConfig.SmtpUsername = "[email protected]"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not recommended to use a fixed email.
The email must be configurable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review changed settings
@@ -1,6 +1,6 @@ | |||
{ | |||
"ConnectionStrings": { | |||
"DefaultConnection": "Server=.;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true" | |||
"DefaultConnection": "server=DotNetFSD\\SQLEXPRESS;database = SimplCommerce;user id = sa; password = pass@123;trustservercertificate = true;MultipleActiveResultSets=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
Closed while there's no respond from the author Feel free to reopen the PR again |
User after registering with an Email gets the verification link to his Mailbox. By clicking on the verification link he/she will be redirected to the verifying page and from there user can go to login after the successful verification. Used a sample email and app specific password to generate emails to the registered user.
Email Id : [email protected]
Password : Welcome@123
App Specific Password : mecv erfk mosu fvji
Modified Files :
-- src/Modules/SimplCommerce.Module.Core/Areas/Core/Controllers/AccountController.cs
-- src/Modules/SimplCommerce.Module.EmailSenderSmtp/EmailSender.cs