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

When the user is logged in, the user should not be able to enter the register page. #149

Closed
titounnes opened this issue Dec 24, 2019 · 3 comments

Comments

@titounnes
Copy link
Contributor

I tried to log in and successfully redirected to the default page. But when I try to go to the register page it turns out I can enter. The user should be redirected to the default page.

@Ihabafia
Copy link

You can add the following line in Controllers/AuthController.php

public function register() { if ($this->auth->check()) { return redirect()->back(); }

it will check the user is logged in, it will redirect him back.

@rmilecki
Copy link

This was fixed by #150 (thanks @titounnes)

@lonnieezell
Copy link
Owner

@rmilecki Good catch. Thanks! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants