Skip to content

Commit

Permalink
fix(auth): fix change password form
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Jul 22, 2018
1 parent 73d1e29 commit 4b147a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ export class Generator extends Base {
return contents
.replace(/confirmpassword/g, 'confirmPassword')
.replace(/loginform/g, 'loginForm')
.replace(/changepasswordform/g, 'changePasswordForm')
.replace(/newpassword/g, 'newPassword')
.replace(/ngif/g, 'ngIf')
.replace(/ngfor/g, 'ngFor')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h1>Change Password</h1>
</div>
<div class="col-sm-12">
<form class="form" name="form" (ngSubmit)="changePassword()" novalidate>
<form class="form" name="changePasswordForm" (ngSubmit)="changePassword(changePasswordForm)" novalidate #changePasswordForm="ngForm">

<div class="form-group">
<label>Current Password</label>
Expand Down

0 comments on commit 4b147a4

Please sign in to comment.