fixed error message on auth
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user