public async Task <ViewResult> ForgotPassword(ForgotPasswordViewModel command) { var template = new ResetPasswordTemplate(); await _authenticationHelper.SendPasswordResetNotificationAsync(this, command, template, new CofoundryAdminUserArea()); var viewPath = ViewPathFormatter.View(CONTROLLER_NAME, nameof(ForgotPassword)); return(View(viewPath, command)); }
public async Task <ViewResult> ForgotPassword(ForgotPasswordViewModel command) { var template = new ResetPasswordTemplate(); var settings = await _queryExecutor.ExecuteAsync(new GetSettingsQuery <GeneralSiteSettings>()); template.ApplicationName = settings.ApplicationName; await _authenticationHelper.SendPasswordResetNotificationAsync(this, command, template, _adminUserArea); var viewPath = ViewPathFormatter.View(CONTROLLER_NAME, nameof(ForgotPassword)); return(View(viewPath, command)); }