Changements login + register

This commit is contained in:
gokhoal
2026-04-30 17:49:44 +02:00
parent 4d80f26f25
commit c6950e863a
6 changed files with 342 additions and 81 deletions
@@ -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;