update project

This commit is contained in:
Romulus21
2025-10-08 11:35:48 +02:00
parent f5bddca70c
commit 07cca53ce3
9 changed files with 5612 additions and 4605 deletions

View File

@@ -31,8 +31,8 @@ export const AuthUserProvider = ({children}: PropsWithChildren) => {
// @ts-expect-error check axios response status
if (error.response.status === 401) {
console.info('no user login')
let url = window.location.pathname.split('/')[1]
if (!['connexion', 'changer-le-mot-de-passe'].includes(url)) {
const url = window.location.pathname.split('/')[1]
if (!['connexion', 'changer-le-mot-de-passe', 'sinscrire'].includes(url)) {
window.location.href = '/connexion'
}
}