Ticket #4 (closed defect: fixed)
OpenID login fails when URL is not associated with a user
| Reported by: | michaeltwofish | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Component: | openid |
| Keywords: | OpenID, has_patch | Cc: |
Description
On an attempted login, the OpenID plugin tests if Users::get_by_info( 'openid_url', $openid ) is true. However, if no users exist with this info, an empty Users object is returned, which evaluates to true. The attached patch tests count($user) != 0 instead. This works, but there may be a more elegant solution.
(This is http://trac.habariproject.org/habari/ticket/178, which should have been opened here.)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
