mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: prevent redirect to dashboard on password recovery for logged-in users.
This commit is contained in:
1 parent
da15519128
commit
35b54f8d69
1 file changed
+3
@@ -17,6 +17,9 @@ export const load: LayoutLoad = async ({ depends, url }) => {
|
||||
url.searchParams.delete('forceRedirect');
|
||||
}
|
||||
|
||||
// logged-in user can recover-password!
|
||||
if (url.pathname === '/recover') return {};
|
||||
|
||||
try {
|
||||
const account = await sdk.forConsole.account.get<{ organization?: string }>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user