From 400608e8dd8ade276fb6c060b976a7206617e820 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Fri, 12 May 2017 12:58:12 +0100 Subject: [PATCH] Fixed forms and added code --- src/app/pages/login.component.html | 4 ++-- src/app/pages/login.component.ts | 2 +- src/app/pages/register.component.html | 11 ++++++++++- src/app/pages/register.component.ts | 1 + 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/app/pages/login.component.html b/src/app/pages/login.component.html index c9c29b5..4e1d620 100644 --- a/src/app/pages/login.component.html +++ b/src/app/pages/login.component.html @@ -10,7 +10,7 @@
@ - +
@@ -18,7 +18,7 @@
- +
diff --git a/src/app/pages/login.component.ts b/src/app/pages/login.component.ts index d02f3a3..054c06c 100644 --- a/src/app/pages/login.component.ts +++ b/src/app/pages/login.component.ts @@ -36,7 +36,7 @@ export class LoginComponent { console.log(this.signin.value); this.api - .register(this.signin.value) + .login(this.signin.value) .subscribe( result => { console.log('logged in!'); diff --git a/src/app/pages/register.component.html b/src/app/pages/register.component.html index 39f5c76..883cd76 100644 --- a/src/app/pages/register.component.html +++ b/src/app/pages/register.component.html @@ -13,6 +13,15 @@
+ + +
+ +
@@ -49,7 +58,7 @@
- +
diff --git a/src/app/pages/register.component.ts b/src/app/pages/register.component.ts index 89a95fc..c4a2db4 100644 --- a/src/app/pages/register.component.ts +++ b/src/app/pages/register.component.ts @@ -28,6 +28,7 @@ export class RegisterComponent { ); this.signup = this.formBuilder.group({ token: ['', [Validators.required]], + usertype: ['', [Validators.required]], full_name: ['', [Validators.required]], display_name: ['', [Validators.required]], email: ['', [Validators.required]],