One time password on forgot password
This commit is contained in:
parent
5f6e13c645
commit
1e0a0710fd
16 changed files with 326 additions and 109 deletions
|
@ -401,7 +401,8 @@
|
|||
<Controls>
|
||||
<Control key="" src="WebsitePanel/Login.ascx" title="SignIn" type="View" />
|
||||
<Control key="forgot_password" src="WebsitePanel/LoginForgotPassword.ascx" title="PasswordReminder" type="View" />
|
||||
<Control key="scpa" src="WebsitePanel/SetupControlPanelAccounts.ascx" title="SetupControlPanelAccounts" type="View" />
|
||||
<Control key="change_onetimepassword" src="WebsitePanel/UserAccountChangePassword.ascx" title="UserAccountChangePassword" type="View" icon="admin_lock_48.png" />
|
||||
<Control key="scpa" src="WebsitePanel/SetupControlPanelAccounts.ascx" title="SetupControlPanelAccounts" type="View" />
|
||||
</Controls>
|
||||
</ModuleDefinition>
|
||||
<ModuleDefinition id="AuditLog">
|
||||
|
|
|
@ -4581,6 +4581,9 @@
|
|||
<data name="Error.ERROR_USER_ACCOUNT_SUSPENDED" xml:space="preserve">
|
||||
<value>User account is Suspended</value>
|
||||
</data>
|
||||
<data name="Warning.USER_SHOULD_CHANGE_ONETIMEPASSWORD" xml:space="preserve">
|
||||
<value>You should change your one time password.</value>
|
||||
</data>
|
||||
<data name="VPS.VPS_CREATE_EMPTY_HOSTNAME_PATTERN" xml:space="preserve">
|
||||
<value>Hostname pattern is not specified. Could not create VPS with blank hostname.</value>
|
||||
</data>
|
||||
|
|
|
@ -382,7 +382,7 @@ namespace WebsitePanel.Portal
|
|||
else return BusinessErrorCodes.ERROR_USER_ACCOUNT_ROLE_NOT_ALLOWED;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return authResult;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
@ -186,6 +186,11 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
ShowWarningMessage("WrongLogin");
|
||||
}
|
||||
else if (loginStatus == BusinessSuccessCodes.SUCCESS_USER_ONETIMEPASSWORD)
|
||||
{
|
||||
// One time password should be changed after login
|
||||
Response.Redirect(EditUrl("UserID", PanelSecurity.LoggedUserId.ToString(), "change_onetimepassword", "onetimepassword=true"), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// redirect by shortcut
|
||||
|
|
|
@ -80,6 +80,11 @@ namespace WebsitePanel.Portal
|
|||
if (!String.IsNullOrEmpty(changePasswordWarningText))
|
||||
lblChangePasswordWarning.Text = changePasswordWarningText;
|
||||
}
|
||||
|
||||
if (PanelRequest.GetBool("onetimepassword"))
|
||||
{
|
||||
ShowWarningMessage("USER_SHOULD_CHANGE_ONETIMEPASSWORD");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue