]> git.mjollnir.org Git - moodle.git/commit
MDL-90 authenticate_user_login() - don't accidentally return a bogus $user
authormartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:56:48 +0000 (02:56 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:56:48 +0000 (02:56 +0000)
commita668c808450df1e736865cd36afaeb95fb72cc64
treec4797063b9bc00cfa8f67031d0cb20c036cfcfc4
parenta4c371ece6b50286bcf212eadac7928e8421389e
MDL-90 authenticate_user_login() - don't accidentally return a bogus $user

While I don't quite understand why we need that $user->id=0, at
_least_ make double sure we don't return it! Callers assume
that if we return an object===success and a user acct that just does
not exist will return an dummy object.
lib/moodlelib.php