fix a recent commit
Default user token provider is back
This commit is contained in:
@ -356,7 +356,7 @@ namespace Yavsc.Controllers
|
|||||||
var code = await _userManager.GeneratePasswordResetTokenAsync(user);
|
var code = await _userManager.GeneratePasswordResetTokenAsync(user);
|
||||||
var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme);
|
var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme);
|
||||||
await _emailSender.SendEmailAsync(_siteSettings,_smtpSettings,model.Email, _localizer["Reset Password"],
|
await _emailSender.SendEmailAsync(_siteSettings,_smtpSettings,model.Email, _localizer["Reset Password"],
|
||||||
_localizer["Please reset your password by following this link:"] + callbackUrl );
|
_localizer["Please reset your password by following this link:"] +" <"+ callbackUrl +">" );
|
||||||
return View("ForgotPasswordConfirmation");
|
return View("ForgotPasswordConfirmation");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,10 +77,12 @@ namespace Yavsc
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
).AddEntityFrameworkStores<ApplicationDbContext>()
|
).AddEntityFrameworkStores<ApplicationDbContext>()
|
||||||
.AddTokenProvider<EmailTokenProvider<ApplicationUser>>(Constants.EMailFactor)
|
.AddTokenProvider<EmailTokenProvider<ApplicationUser>>(Constants.DefaultFactor);
|
||||||
// .AddTokenProvider<UserTokenProvider>(Constants.DefaultFactor)
|
// .AddTokenProvider<UserTokenProvider>(Constants.DefaultFactor)
|
||||||
;
|
// .AddTokenProvider<UserTokenProvider>(Constants.SMSFactor)
|
||||||
|
// .AddTokenProvider<UserTokenProvider>(Constants.EMailFactor)
|
||||||
|
// .AddTokenProvider<UserTokenProvider>(Constants.AppFactor)
|
||||||
|
//
|
||||||
}
|
}
|
||||||
private void ConfigureOAuthApp(IApplicationBuilder app, SiteSettings settings)
|
private void ConfigureOAuthApp(IApplicationBuilder app, SiteSettings settings)
|
||||||
{
|
{
|
||||||
|
@ -132,8 +132,6 @@ namespace Yavsc
|
|||||||
|
|
||||||
ConfigureOAuthServices(services);
|
ConfigureOAuthServices(services);
|
||||||
|
|
||||||
// .AddTokenProvider<UserTokenProvider>(Constants.SMSFactor)
|
|
||||||
//
|
|
||||||
|
|
||||||
services.AddCors(
|
services.AddCors(
|
||||||
/*
|
/*
|
||||||
|
2
Yavsc/wwwroot/js/site.min.js
vendored
2
Yavsc/wwwroot/js/site.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user