Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign in page should redirect authenticated users to the backend #1131

Merged
merged 1 commit into from
May 21, 2024

Conversation

mjauvin
Copy link
Member

@mjauvin mjauvin commented May 20, 2024

logged in users should not be allowed to stay on this page without logging out first.

@@ -52,6 +52,10 @@ public function index()
*/
public function signin()
{
if (BackendAuth::user()) {
return Backend::redirect('backend');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user doesn't necessarily have access to the dashboard, so it might be nice at some point to provide a helper method that would return the first menu item they have access to and use that instead, but this is probably good enough for now given that the current behaviour is just showing them the signin page when they're already logged in.

@LukeTowers LukeTowers changed the title signin action should redirect logged in users to backend Sign in page should redirect authenticated users to the backend May 21, 2024
@LukeTowers LukeTowers merged commit ddca17f into develop May 21, 2024
12 checks passed
@LukeTowers LukeTowers deleted the signin-loggedin-redirect branch May 21, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants