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]],