Skip to content

Commit 4271660

Browse files
authored
Merge pull request #2748 from zeripath/issue-2747
fix(auth): fix change password form
2 parents ed3b775 + 60c9072 commit 4271660

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/generators/app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ export class Generator extends Base {
522522
return contents
523523
.replace(/confirmpassword/g, 'confirmPassword')
524524
.replace(/loginform/g, 'loginForm')
525+
.replace(/changepasswordform/g, 'changePasswordForm')
525526
.replace(/newpassword/g, 'newPassword')
526527
.replace(/ngif/g, 'ngIf')
527528
.replace(/ngfor/g, 'ngFor')

Diff for: templates/app/client/app/account(auth)/settings/settings.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Change Password</h1>
55
</div>
66
<div class="col-sm-12">
7-
<form class="form" name="form" (ngSubmit)="changePassword()" novalidate>
7+
<form class="form" name="changePasswordForm" (ngSubmit)="changePassword(changePasswordForm)" novalidate #changePasswordForm="ngForm">
88

99
<div class="form-group">
1010
<label>Current Password</label>

0 commit comments

Comments
 (0)