Changements login + register
This commit is contained in:
@@ -26,6 +26,10 @@ export class LoginFormComponent {
|
||||
|
||||
isLoading = false;
|
||||
|
||||
goToRegister() {
|
||||
this.router.navigate(['/register']);
|
||||
}
|
||||
|
||||
loginForm = this.fb.group({
|
||||
name: ['', [Validators.required]],
|
||||
password: ['', [Validators.required]]
|
||||
@@ -34,6 +38,8 @@ export class LoginFormComponent {
|
||||
async submitForm(): Promise<void> {
|
||||
if (this.loginForm.valid) {
|
||||
|
||||
|
||||
|
||||
await this.navCtrl.navigateRoot(['main/messages']);
|
||||
|
||||
this.isLoading = true;
|
||||
|
||||
Reference in New Issue
Block a user