aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
index c4837460a..da0021df9 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
@@ -5,8 +5,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
5import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 5import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
6import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service' 6import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service'
7import { filter } from 'rxjs/operators' 7import { filter } from 'rxjs/operators'
8import { AuthService } from '@app/core'; 8import { AuthService } from '@app/core'
9import { User } from '../../../../../../shared'; 9import { User } from '../../../../../../shared'
10 10
11@Component({ 11@Component({
12 selector: 'my-account-change-password', 12 selector: 'my-account-change-password',
@@ -46,7 +46,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
46 46
47 checkPassword () { 47 checkPassword () {
48 this.error = null 48 this.error = null
49 const oldPassword = this.form.value[ 'old-password' ]; 49 const oldPassword = this.form.value[ 'old-password' ]
50 50
51 // compare old password 51 // compare old password
52 this.authService.login(this.user.account.name, oldPassword) 52 this.authService.login(this.user.account.name, oldPassword)
@@ -60,7 +60,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
60 60
61 } 61 }
62 62
63 private changePassword(){ 63 private changePassword () {
64 this.userService.changePassword(this.form.value[ 'new-password' ]).subscribe( 64 this.userService.changePassword(this.form.value[ 'new-password' ]).subscribe(
65 () => { 65 () => {
66 this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.')) 66 this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.'))