Skip to content

Commit a697f76

Browse files
committed
Removed change password since it's not working.
1 parent 9c83d03 commit a697f76

File tree

6 files changed

+0
-130
lines changed

6 files changed

+0
-130
lines changed

src/AbpCompanyName.AbpProjectName.Core/Localization/Source/AbpProjectName.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
<text name="Password" value="Password" />
2727
<text name="RememberMe" value="Remember me" />
2828
<text name="LogIn" value="Log in" />
29-
<text name="ChangePassword" value="Change your password" />
30-
<text name="OldPassword" value="Current password" />
31-
<text name="NewPassword" value="New password" />
32-
<text name="ConfirmPassword" value="Confirm new password" />
33-
<text name="PasswordLengthError" value="The {0} must be at least {2} characters long." />
34-
<text name="PasswordConfirmError" value="The new password and confirmation password do not match." />
3529

3630
<text name="LoginFailed" value="Login failed!" />
3731

src/AbpCompanyName.AbpProjectName.WebSpaAngular/AbpCompanyName.AbpProjectName.WebSpaAngular.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,6 @@
12011201
<Compile Include="Global.asax.cs">
12021202
<DependentUpon>Global.asax</DependentUpon>
12031203
</Compile>
1204-
<Compile Include="Models\Account\ChangePasswordViewModel.cs" />
12051204
<Compile Include="Models\Account\LoginFormViewModel.cs" />
12061205
<Compile Include="Models\Account\LoginViewModel.cs" />
12071206
<Compile Include="Models\Account\RegisterResultViewModel.cs" />
@@ -1222,7 +1221,6 @@
12221221
<Content Include="Views\Account\RegisterResult.cshtml" />
12231222
<Content Include="Views\Account\TenantSelection.cshtml" />
12241223
<Content Include="Scripts\version.json" />
1225-
<Content Include="Views\Account\ChangePassword.cshtml" />
12261224
<None Include="Web.Debug.config">
12271225
<DependentUpon>Web.config</DependentUpon>
12281226
</None>

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/layout/header.cshtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<li class="dropdown">
3232
<a href="" data-toggle="dropdown"><i class="fa fa-user"></i> <span>{{vm.getShownUserName()}}</span> <b class="caret"></b></a>
3333
<ul class="dropdown-menu">
34-
<li><a href="@Url.Action("changepassword", "Account" )" class="modal-link"><i class="fa fa-key"></i> @L("ChangePassword")</a></li>
3534
<li><a href="@Url.Action("Logout", "Account")"><i class="fa fa-sign-out"></i> Logout</a></li>
3635
</ul>
3736
</li>

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Controllers/AccountController.cs

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -56,45 +56,6 @@ public AccountController(
5656
_multiTenancyConfig = multiTenancyConfig;
5757
}
5858

59-
60-
#region ChangePassword
61-
62-
[Abp.Authorization.AbpAuthorize]
63-
public ActionResult ChangePassword(string returnUrl = "")
64-
{
65-
if (string.IsNullOrWhiteSpace(returnUrl))
66-
{
67-
returnUrl = Request.ApplicationPath;
68-
}
69-
70-
return PartialView(
71-
new ChangePasswordViewModel
72-
{
73-
ReturnUrl = returnUrl
74-
});
75-
}
76-
77-
[Abp.Authorization.AbpAuthorize]
78-
[HttpPost]
79-
public ActionResult ChangePassword(ChangePasswordViewModel input)
80-
{
81-
if (!ModelState.IsValid)
82-
{
83-
throw new UserFriendlyException(L("FormIsNotValidMessage"));
84-
}
85-
86-
IdentityResult result = _userManager.ChangePassword(AbpSession.UserId.Value, input.OldPassword, input.NewPassword);
87-
88-
if (!result.Succeeded)
89-
{
90-
throw new UserFriendlyException("Something did not work out, sorry");
91-
}
92-
93-
return Redirect(input.ReturnUrl);
94-
}
95-
96-
#endregion ChangePassword
97-
9859
#region Login / Logout
9960

10061
public ActionResult Login(string returnUrl = "")

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Models/Account/ChangePasswordViewModel.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Views/Account/ChangePassword.cshtml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)