|
@@ -569,12 +569,12 @@ export class LoginComponent implements OnInit {
|
|
|
catchError(async (e) => {
|
|
|
|
|
|
const toast = await this.toastController.create({
|
|
|
- message: e.message,
|
|
|
+ message: e?.error.mess || e?.error.message,
|
|
|
color: 'danger',
|
|
|
duration: 1000,
|
|
|
});
|
|
|
toast.present();
|
|
|
- console.log(e);
|
|
|
+ console.log(e?.error.mess);
|
|
|
return;
|
|
|
})
|
|
|
)
|
|
@@ -595,15 +595,16 @@ export class LoginComponent implements OnInit {
|
|
|
invite: '',
|
|
|
};
|
|
|
this.status = 'login';
|
|
|
- } else {
|
|
|
- const toast = await this.toastController.create({
|
|
|
-
|
|
|
- message: res.mess,
|
|
|
- color: 'danger',
|
|
|
- duration: 1000,
|
|
|
- });
|
|
|
- toast.present();
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
}
|