aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorBO41 <lukasw41@gmail.com>2018-09-22 16:56:07 +0200
committerChocobozzz <me@florianbigard.com>2018-09-26 16:28:26 +0200
commitbe1206bb934c223893a652be5f1f6c911c9c66be (patch)
treebe8a70209305a1c5c8823bf09b55683687f611bf /client/src
parent3805ce3f4335e89f63ddb6cd166f14ba120d9c83 (diff)
downloadPeerTube-be1206bb934c223893a652be5f1f6c911c9c66be.tar.gz
PeerTube-be1206bb934c223893a652be5f1f6c911c9c66be.tar.zst
PeerTube-be1206bb934c223893a652be5f1f6c911c9c66be.zip
fix lint errors
Diffstat (limited to 'client/src')
-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.'))