Topic on Extension talk:Auth remoteuser

$wgAuthRemoteuserUserName = "Everybody"

2
136.163.203.5 (talkcontribs)

A question about Number 5 i the extension page:

// This is not advised, because it will evaluate every visitor

// to the same wiki user 'Everybody'

$wgAuthRemoteuserUserName = "Everybody";

I tried to use this form and insert a substring called $username read from a cookie containing the username instead of "Everybody",

$wgAuthRemoteuserUserName = $username;

but it seems to evaluate to nothing and the user is not logged in.

When I echo the string read from the cookie it looks ok.

If i write the the same cookie value as a string, and run the function on it, the function to read the username and log in works fine. I tried a lot of other string operations on the value as a string, and it still works, but when I try to use the substring from the cookie it will not login. What is wrong?

Ciencia Al Poder (talkcontribs)

How do you get that substring? Maybe there's some error in your code and the value doesn't get assigned at all

Reply to "$wgAuthRemoteuserUserName = "Everybody""