This commit is contained in:
Yûki VACHOT 2021-11-12 16:55:32 +01:00
parent 21d32a2dc2
commit 255c8b1ca3

View file

@ -46,8 +46,8 @@ export class PageLoginComponent implements OnInit
maCallback(retour): void maCallback(retour): void
{ {
console.log(retour.data) console.log(retour.data)
if(retour.status === "error") { if(retour.status !== 200) {
this.errorMessage = retour.data.reason; this.errorMessage = retour.error.data.reason;
this.hasError = true; this.hasError = true;
} }
else { else {