Wikia/app — pull request #4507 by nandy-andy (2014-08-20 15:00:14+00:00)
Title: CONN-587

Sometimes the AJAX request sent after clicking "Forgot your password?" fails because of DB error. We know it happens because `$userName` passed to DB in a hook is `null`. We don't know why it's `null` and it's hard to find out because the bug is occurring intermittently. To allow users reset their password I wrapped the hooks logic in `if-else` and I'm logging data which might help us tracking the cause of this strange issue. This way we'll know when the issue happened and the user will be still able to reset her password since the AJAX request won't fail.