Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix vite.config.ts --> sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
cstefc committed Mar 16, 2024
1 parent 5696c9a commit 0ed88e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/login/LoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function LoginScreen(): JSX.Element {
if (location.state?.from?.pathname) {
from = location.state.from.pathname
}
console.log(from)
console.log("from: "+from)
const navigate = useNavigate();
const [ticket, setTicket] = useState('');
const [token, setToken] = useState<string | undefined>('')
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/pages/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {Navigate} from "react-router-dom";
export default function Root(): JSX.Element {
const {user} = useAuth()
let to: string = "/error"
console.log(user?.roles.includes('STUDENT'))
if (!user){
to = "/login"
}
Expand All @@ -18,6 +17,5 @@ export default function Root(): JSX.Element {
to = "/admin";
}
}
console.log(to);
return (<Navigate to={to}/>)
}
5 changes: 2 additions & 3 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import mkcert from 'vite-plugin-mkcert'
export default defineConfig({
plugins: [react(), mkcert()],
server: {
port: 8081, // nodig voor CAS
https: false
port: 8080, // nodig voor CAS
},
})
})

0 comments on commit 0ed88e0

Please sign in to comment.