diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index fbaec456..47f52fe2 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -4,73 +4,76 @@
-
- - Username - - - An username is required - - -
-
- - Password - - - - A password is required - - -
-
-
- -
-
- -
- -
- - Username - - - An username is required - - -
-
- + + Email - - + + An email is required - + Please enter a valid email

- + Password - + - + A password is required
-
- +
+
+ +
+
+ + + Email + + + An email is required + + + Please enter a valid email + + +
+
+ + Username + + + An username is required + + +
+
+ + Password + + + + A password is required + + +
+
+ +
+
+
\ No newline at end of file diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 30ec64f7..f5182f29 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -1,27 +1,26 @@ import { Component, OnInit } from '@angular/core'; -import {FormControl, Validators} from "@angular/forms"; +import {FormControl, FormGroup, Validators} from "@angular/forms"; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.scss'] }) -export class LoginComponent implements OnInit +export class LoginComponent { - username = new FormControl("", [Validators.required]); - password = new FormControl("", [Validators.required]); - email = new FormControl("", [Validators.required, Validators.email]); - + loginInformation: {email: string, password: string} = {email: "", password: ""}; + signinInformation: {email: string, username: string, password: string} = {email: "", username: "", password: ""}; hidePassword: boolean = true; constructor() { } - - ngOnInit() - { - } async login() { } + + async signin() + { + console.log("Signing in") + } }