Merge branch 'bug-solving' into 'master'

Correction: L'application se bloque lorsque les identifiants sont incorrectes

See merge request color-recipes-explorer/frontend!22
This commit is contained in:
William Nolin 2021-04-19 13:09:29 +00:00
commit 188e6a685a
1 changed files with 2 additions and 2 deletions

View File

@ -74,12 +74,12 @@ export class AccountService implements OnDestroy {
success()
},
error: err => {
if (err.status === 401) {
globalLoadingWheel.hide()
if (err.status === 401 || err.status === 403) {
this.alertService.pushError('Les identifiants entrés sont invalides')
} else {
this.errorService.handleError(err)
}
globalLoadingWheel.hide()
}
})
}