Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
distributed auth no longer works on the first time because user_load() doesn't return empty for user_load(array('name' => "$name@$server")) ... it returns the anonymous user object.
small patch to fix this... making things like drupal.module auth work again.
Comment | File | Size | Author |
---|---|---|---|
#3 | dist-auth-patch.diff | 1.57 KB | walkah |
user-fix-dist-auth.diff | 1.13 KB | walkah | |
Comments
Comment #1
Junyor CreditAttribution: Junyor commentedThanks, that solved the problem I was having. Seems to work well in limited testing.
Comment #2
Dries CreditAttribution: Dries commentedI wonder when/how this broke? Strange fix.
Why is the following check _inside_ the loop:
Comment #3
walkah CreditAttribution: walkah commentedjudging from the fact that the object returned from user_load() consists of only the roles array (with 'anonymous user'), i'm guessing it broke around the introduction of multiple roles/user. i.e. the anonymous user is no longer an empty object.
attached is a new patch that moves the user_load inside the other check (good idea).
Comment #4
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #5
(not verified) CreditAttribution: commented