MDL-29318 login: Handle email in case-insensitive manner
commit0503fc7a355109e5d5165c53d44e43c616fe3a7f
authorJun Pataleta <jun@moodle.com>
Wed, 6 Mar 2019 07:34:38 +0000 (6 15:34 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 29 Mar 2019 05:33:55 +0000 (29 13:33 +0800)
tree106b25e39ada7fa199fa9e053fd61a27d9ce06b4
parent6abbe519d60cdbb65be414cac6c858a0af33e8ea
MDL-29318 login: Handle email in case-insensitive manner

* Let get_complete_user_data() handle the fetching of user data and
  handle the logic of the errors to be shown based on the exception
  it throws. This also saves us 1 DB query by eliminating the need to
  count for the users that match a given email first before fetching
  user information.
login/lib.php