password policy max password age added
This commit is contained in:
parent
fbf5e1b1df
commit
f0812f7b2d
18 changed files with 270 additions and 62 deletions
|
@ -48,6 +48,12 @@ namespace WebsitePanel.WebDavPortal
|
|||
defaults: new { controller = "Account", action = "PasswordResetFinalStep", pincode = UrlParameter.Optional }
|
||||
);
|
||||
|
||||
routes.MapRoute(
|
||||
name: AccountRouteNames.PasswordResetSuccess,
|
||||
url: "account/password-reset/success",
|
||||
defaults: new { controller = "Account", action = "PasswordSuccessfullyChanged" }
|
||||
);
|
||||
|
||||
routes.MapRoute(
|
||||
name: AccountRouteNames.PasswordChange,
|
||||
url: "account/profile/password-change",
|
||||
|
|
|
@ -16,6 +16,7 @@ namespace WebsitePanel.WebDavPortal.UI.Routes
|
|||
public const string PasswordResetSms = "PasswordResetSmsRoute";
|
||||
public const string PasswordResetSendSms = "PasswordResetSendSmsRoute";
|
||||
public const string PasswordResetFinalStep = "PasswordResetFinalStepRoute";
|
||||
public const string PasswordResetSuccess = "PasswordResetSuccess";
|
||||
|
||||
public const string PhoneNumberIsAvailible = "PhoneNumberIsAvailibleRoute";
|
||||
}
|
||||
|
|
|
@ -299,7 +299,14 @@ namespace WebsitePanel.WebDavPortal.Controllers
|
|||
|
||||
AddMessage(MessageType.Success, Resources.Messages.PasswordSuccessfullyChanged);
|
||||
|
||||
return RedirectToRoute(AccountRouteNames.Login);
|
||||
return RedirectToRoute(AccountRouteNames.PasswordResetSuccess);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public ActionResult PasswordSuccessfullyChanged()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
|
|
@ -60,6 +60,15 @@ namespace WebsitePanel.WebDavPortal.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Account.
|
||||
/// </summary>
|
||||
public static string Account {
|
||||
get {
|
||||
return ResourceManager.GetString("Account", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Actions.
|
||||
/// </summary>
|
||||
|
@ -123,6 +132,15 @@ namespace WebsitePanel.WebDavPortal.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to You can now access your {0}..
|
||||
/// </summary>
|
||||
public static string CanAccessYourFormat {
|
||||
get {
|
||||
return ResourceManager.GetString("CanAccessYourFormat", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cancel.
|
||||
/// </summary>
|
||||
|
@ -537,6 +555,15 @@ namespace WebsitePanel.WebDavPortal.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Your new password has been set..
|
||||
/// </summary>
|
||||
public static string NewPasswordBeenSet {
|
||||
get {
|
||||
return ResourceManager.GetString("NewPasswordBeenSet", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Confirm password.
|
||||
/// </summary>
|
||||
|
|
|
@ -396,4 +396,13 @@
|
|||
<data name="PasswordNeverExpiresFormat" xml:space="preserve">
|
||||
<value>Password never expires. If you want to change password then please click {0}.</value>
|
||||
</data>
|
||||
<data name="Account" xml:space="preserve">
|
||||
<value>Account</value>
|
||||
</data>
|
||||
<data name="CanAccessYourFormat" xml:space="preserve">
|
||||
<value>You can now access your {0}.</value>
|
||||
</data>
|
||||
<data name="NewPasswordBeenSet" xml:space="preserve">
|
||||
<value>Your new password has been set.</value>
|
||||
</data>
|
||||
</root>
|
|
@ -0,0 +1,18 @@
|
|||
@using WebsitePanel.WebDavPortal.Resources
|
||||
@using WebsitePanel.WebDavPortal.UI.Routes
|
||||
|
||||
@{
|
||||
string message = string.Format(UI.CanAccessYourFormat, Html.RouteLink(UI.Account,AccountRouteNames.Login));
|
||||
}
|
||||
|
||||
|
||||
<div class="container row">
|
||||
<div class="form-group">
|
||||
<h3>@Messages.PasswordSuccessfullyChanged</h3>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div>
|
||||
@UI.NewPasswordBeenSet @Html.Raw(message)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -489,6 +489,7 @@
|
|||
<Content Include="Views\Account\PasswordResetEmailSent.cshtml" />
|
||||
<Content Include="Views\Account\PasswordResetSms.cshtml" />
|
||||
<Content Include="Views\Account\PasswordResetFinalStep.cshtml" />
|
||||
<Content Include="Views\Account\PasswordSuccessfullyChanged.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Models\FileSystem\Enums\" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue