diff options
Diffstat (limited to 'client/src/app/signup/signup.component.ts')
-rw-r--r-- | client/src/app/signup/signup.component.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts index bcbc8ded3..981fe3c3b 100644 --- a/client/src/app/signup/signup.component.ts +++ b/client/src/app/signup/signup.component.ts | |||
@@ -12,6 +12,7 @@ import { | |||
12 | USER_EMAIL, | 12 | USER_EMAIL, |
13 | USER_PASSWORD | 13 | USER_PASSWORD |
14 | } from '../shared' | 14 | } from '../shared' |
15 | import { UserCreate } from '../../../../shared' | ||
15 | 16 | ||
16 | @Component({ | 17 | @Component({ |
17 | selector: 'my-signup', | 18 | selector: 'my-signup', |
@@ -58,11 +59,11 @@ export class SignupComponent extends FormReactive implements OnInit { | |||
58 | signup () { | 59 | signup () { |
59 | this.error = null | 60 | this.error = null |
60 | 61 | ||
61 | const { username, password, email } = this.form.value | 62 | const userCreate: UserCreate = this.form.value |
62 | 63 | ||
63 | this.userService.signup(username, password, email).subscribe( | 64 | this.userService.signup(userCreate).subscribe( |
64 | () => { | 65 | () => { |
65 | this.notificationsService.success('Success', `Registration for ${username} complete.`) | 66 | this.notificationsService.success('Success', `Registration for ${userCreate.username} complete.`) |
66 | this.router.navigate([ '/videos/list' ]) | 67 | this.router.navigate([ '/videos/list' ]) |
67 | }, | 68 | }, |
68 | 69 | ||