mirror of https://github.com/Chocobozzz/PeerTube
fix lint errors
parent
3805ce3f43
commit
be1206bb93
|
@ -5,8 +5,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
|
||||||
import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
|
import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
|
||||||
import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service'
|
import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service'
|
||||||
import { filter } from 'rxjs/operators'
|
import { filter } from 'rxjs/operators'
|
||||||
import { AuthService } from '@app/core';
|
import { AuthService } from '@app/core'
|
||||||
import { User } from '../../../../../../shared';
|
import { User } from '../../../../../../shared'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-account-change-password',
|
selector: 'my-account-change-password',
|
||||||
|
@ -46,7 +46,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
|
||||||
|
|
||||||
checkPassword () {
|
checkPassword () {
|
||||||
this.error = null
|
this.error = null
|
||||||
const oldPassword = this.form.value[ 'old-password' ];
|
const oldPassword = this.form.value[ 'old-password' ]
|
||||||
|
|
||||||
// compare old password
|
// compare old password
|
||||||
this.authService.login(this.user.account.name, oldPassword)
|
this.authService.login(this.user.account.name, oldPassword)
|
||||||
|
@ -60,7 +60,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private changePassword(){
|
private changePassword () {
|
||||||
this.userService.changePassword(this.form.value[ 'new-password' ]).subscribe(
|
this.userService.changePassword(this.form.value[ 'new-password' ]).subscribe(
|
||||||
() => {
|
() => {
|
||||||
this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.'))
|
this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.'))
|
||||||
|
|
Loading…
Reference in New Issue