Basic-Auth icon indicating copy to clipboard operation
Basic-Auth copied to clipboard

Condition to not authenticate twice causes user to be not logged in during Create/Edit

Open jkohlbach opened this issue 11 years ago • 0 comments

Hi, took me a while to narrow this down but it seems that the following code causes issues where users aren't logged in properly during Create/Edit calls:

// Don't authenticate twice
if ( ! empty( $user ) ) {
    return $user;
}

I comment this out and everything starts working properly.

I tested this on multiple single site installations on several servers. It was the only way to get the Basic Auth working.

I suspect the issue might have been introduced when some conditions for multi-site recursion was addressed? #9

jkohlbach avatar Jan 07 '15 23:01 jkohlbach