Improve signin messaging
This commit is contained in:
parent
b4e6bac566
commit
72a8ed5c16
7 changed files with 110 additions and 20 deletions
|
|
@ -224,7 +224,10 @@ router.beforeEach(async (to, from) => {
|
|||
const storeSession = useSessionStore();
|
||||
try {
|
||||
if (!storeSession.isLoading && !storeSession.isAuthenticated) {
|
||||
console.log("sending to signin because we're not authenticated");
|
||||
console.log(
|
||||
"sending to signin because we're not authenticated and user wanted",
|
||||
to.fullPath,
|
||||
);
|
||||
return `/signin?next=${from.fullPath}`;
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue