]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+reset-password/reset-password.component.ts
Add available themes and plugins in feature table
[github/Chocobozzz/PeerTube.git] / client / src / app / +reset-password / reset-password.component.ts
index ce9144170b7ba64d34b83447c0c35358dfe02452..11c5110fd73bacb31cbc4fc851faf40fc379f981 100644 (file)
@@ -21,7 +21,7 @@ export class ResetPasswordComponent extends FormReactive implements OnInit {
     private notifier: Notifier,
     private router: Router,
     private route: ActivatedRoute
-    ) {
+  ) {
     super()
   }
 
@@ -42,14 +42,14 @@ export class ResetPasswordComponent extends FormReactive implements OnInit {
 
   resetPassword () {
     this.userService.resetPassword(this.userId, this.verificationString, this.form.value.password)
-      .subscribe(
-        () => {
+      .subscribe({
+        next: () => {
           this.notifier.success($localize`Your password has been successfully reset!`)
           this.router.navigate([ '/login' ])
         },
 
-        err => this.notifier.error(err.message)
-      )
+        error: err => this.notifier.error(err.message)
+      })
   }
 
   isConfirmedPasswordValid () {