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

onUserLoginFailure needs to catch failure to write to log file during failed login #16475

Merged
merged 3 commits into from
Jun 6, 2017

Conversation

GeraintEdwards
Copy link
Contributor

@GeraintEdwards GeraintEdwards commented Jun 3, 2017

Pull Request for Issue #11869

Summary of Changes

Added Try/Catch around the call to JLog::add so that failed attempt to login doesn't throw unhelpful error screen but instead returns visitor to login page as they would if the log file was writeable.

Testing Instructions

Install patch
Login in the backend with incorrect password or missing password

Expected result

return to login page with message about failure to login

Actual result

Now it does this instead of the error page with message about failure to write to log file

Documentation Changes Required

none

@mbabker
Copy link
Contributor

mbabker commented Jun 3, 2017

This just needs the code style issues to be addressed (we use tabs instead of spaces), otherwise looks good to me. Thanks!

@carcam
Copy link

carcam commented Jun 3, 2017

I have tested this item ✅ successfully on 2053caa

Now Joomla! redirects to the backend login page and shows the errors in the messages area above the login form.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16475.

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 2053caa


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16475.

@ghost
Copy link

ghost commented Jun 4, 2017

RTC after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jun 4, 2017
@brianteeman brianteeman added this to the Joomla 3.7.3 milestone Jun 6, 2017
@wilsonge wilsonge merged commit c84fbca into joomla:staging Jun 6, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 6, 2017
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.

6 participants