fixed error message on auth
This commit is contained in:
@@ -101,10 +101,11 @@ export class LoginComponent implements OnInit {
|
|||||||
try {
|
try {
|
||||||
const users = this.user().userForm.getRawValue();
|
const users = this.user().userForm.getRawValue();
|
||||||
await firstValueFrom(this.usersService.createUserEndpoint(users));
|
await firstValueFrom(this.usersService.createUserEndpoint(users));
|
||||||
|
await loading.dismiss();
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: e.error ?? 'Email ou mot de passe incorrect',
|
message: 'Email ou mot de passe incorrect',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user