diff options
Diffstat (limited to 'client/src/app/+signup/+register')
-rw-r--r-- | client/src/app/+signup/+register/register.component.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/client/src/app/+signup/+register/register.component.ts b/client/src/app/+signup/+register/register.component.ts index 241ca04c6..056442107 100644 --- a/client/src/app/+signup/+register/register.component.ts +++ b/client/src/app/+signup/+register/register.component.ts | |||
@@ -122,8 +122,8 @@ export class RegisterComponent implements OnInit { | |||
122 | 'filter:api.signup.registration.create.params' | 122 | 'filter:api.signup.registration.create.params' |
123 | ) | 123 | ) |
124 | 124 | ||
125 | this.userService.signup(body).subscribe( | 125 | this.userService.signup(body).subscribe({ |
126 | () => { | 126 | next: () => { |
127 | this.signupDone = true | 127 | this.signupDone = true |
128 | 128 | ||
129 | if (this.requiresEmailVerification) { | 129 | if (this.requiresEmailVerification) { |
@@ -133,16 +133,16 @@ export class RegisterComponent implements OnInit { | |||
133 | 133 | ||
134 | // Auto login | 134 | // Auto login |
135 | this.authService.login(body.username, body.password) | 135 | this.authService.login(body.username, body.password) |
136 | .subscribe( | 136 | .subscribe({ |
137 | () => { | 137 | next: () => { |
138 | this.success = $localize`You are now logged in as ${body.username}!` | 138 | this.success = $localize`You are now logged in as ${body.username}!` |
139 | }, | 139 | }, |
140 | 140 | ||
141 | err => this.error = err.message | 141 | error: err => this.error = err.message |
142 | ) | 142 | }) |
143 | }, | 143 | }, |
144 | 144 | ||
145 | err => this.error = err.message | 145 | error: err => this.error = err.message |
146 | ) | 146 | }) |
147 | } | 147 | } |
148 | } | 148 | } |