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

Missing invalidPassword key in language files #162

Merged
merged 3 commits into from
Mar 20, 2020

Conversation

eafarooqi
Copy link
Contributor

No description provided.

@@ -98,6 +98,11 @@ public function attemptLogin()
$redirectURL = session('redirect_url') ?? '/';
unset($_SESSION['redirect_url']);

if($redirectURL == site_url('logout'))
Copy link
Owner

Choose a reason for hiding this comment

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

Typically - a pull request should be limited to a single change type. Like the translation strings. Including this only confuses things and makes it more difficult for me to approve.

What's up with this change? I'm not convinced it's a good change and, even it was it has a couple of problems:

  1. should use route_to instead of site_url to account for people changing the logout url.
  2. We have no way of knowing that / is a good place to send someone to.

The biggest problem I have is that this covers up a potential developer mistake and hides a strange redirection they didn't ask for in our library's controller.

Please remove this change from the PR and I can accept the others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about the confusion, its removed. Will create a separate for other change, if required.

it was not intended to be in the PR, The reason behind that Change was after hitting the logout url the redirect_url on login page is set to logout, so we are stuck in a loop because login page has redirect_url to logout and logout redirect to login again.

@lonnieezell lonnieezell merged commit c73a885 into lonnieezell:develop Mar 20, 2020
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

Successfully merging this pull request may close these issues.

2 participants