fixed error message on auth

This commit is contained in:
2026-05-17 16:10:50 +01:00
parent 036ba39a5f
commit a37b45f5b6
+3 -2
View File
@@ -101,10 +101,11 @@ export class LoginComponent implements OnInit {
try {
const users = this.user().userForm.getRawValue();
await firstValueFrom(this.usersService.createUserEndpoint(users));
await loading.dismiss();
return true;
} catch (e) {
} catch {
const toast = await this.toastCtrl.create({
message: e.error ?? 'Email ou mot de passe incorrect',
message: 'Email ou mot de passe incorrect',
duration: 2000,
color: 'danger'
});