aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+login/login.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 11:27:47 +0200
committerChocobozzz <me@florianbigard.com>2021-08-17 14:01:45 +0200
commit1378c0d343028f3d40d7d795422684ab9e6a1599 (patch)
tree08062b84a38a7e2dfe0aa674e7ca8e1b7321044e /client/src/app/+login/login.component.ts
parentc186a67f90203af6bfa434f026efdc99193bcd65 (diff)
downloadPeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.gz
PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.zst
PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.zip
Fix client lint
Diffstat (limited to 'client/src/app/+login/login.component.ts')
-rw-r--r--client/src/app/+login/login.component.ts32
1 files changed, 16 insertions, 16 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts
index 9731383af..16876afd6 100644
--- a/client/src/app/+login/login.component.ts
+++ b/client/src/app/+login/login.component.ts
@@ -107,17 +107,17 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni
107 const { username, password } = this.form.value 107 const { username, password } = this.form.value
108 108
109 this.authService.login(username, password) 109 this.authService.login(username, password)
110 .subscribe( 110 .subscribe({
111 () => this.redirectService.redirectToPreviousRoute(), 111 next: () => this.redirectService.redirectToPreviousRoute(),
112 112
113 err => this.handleError(err) 113 error: err => this.handleError(err)
114 ) 114 })
115 } 115 }
116 116
117 askResetPassword () { 117 askResetPassword () {
118 this.userService.askResetPassword(this.forgotPasswordEmail) 118 this.userService.askResetPassword(this.forgotPasswordEmail)
119 .subscribe( 119 .subscribe({
120 () => { 120 next: () => {
121 const message = $localize`An email with the reset password instructions will be sent to ${this.forgotPasswordEmail}. 121 const message = $localize`An email with the reset password instructions will be sent to ${this.forgotPasswordEmail}.
122The link will expire within 1 hour.` 122The link will expire within 1 hour.`
123 123
@@ -125,8 +125,8 @@ The link will expire within 1 hour.`
125 this.hideForgotPasswordModal() 125 this.hideForgotPasswordModal()
126 }, 126 },
127 127
128 err => this.notifier.error(err.message) 128 error: err => this.notifier.error(err.message)
129 ) 129 })
130 } 130 }
131 131
132 openForgotPasswordModal () { 132 openForgotPasswordModal () {
@@ -149,14 +149,14 @@ The link will expire within 1 hour.`
149 this.isAuthenticatedWithExternalAuth = true 149 this.isAuthenticatedWithExternalAuth = true
150 150
151 this.authService.login(username, null, token) 151 this.authService.login(username, null, token)
152 .subscribe( 152 .subscribe({
153 () => this.redirectService.redirectToPreviousRoute(), 153 next: () => this.redirectService.redirectToPreviousRoute(),
154 154
155 err => { 155 error: err => {
156 this.handleError(err) 156 this.handleError(err)
157 this.isAuthenticatedWithExternalAuth = false 157 this.isAuthenticatedWithExternalAuth = false
158 } 158 }
159 ) 159 })
160 } 160 }
161 161
162 private handleError (err: any) { 162 private handleError (err: any) {