CallMeNP / lara-auth-bridge

[Unmaintained] Offers a simple API for the included custom phpBB authentication module. for phpBB(3.0,3.1) and laravel5
MIT License
16 stars 8 forks source link

Can't seem to login, no errors are returned. #10

Closed MarkTierney1975 closed 8 years ago

MarkTierney1975 commented 8 years ago

Hi does this package work with Laravel 5.1?

When I try to log in it doesn't seem to be creating a new cookie here. The $matches array is always empty even though it is finding the user in the database.

function curlResponseHeaderCallback($ch, $headerLine) {
    preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $headerLine, $matches);
    foreach($matches[1] as $item) {
        parse_str($item, $cookie);
        setcookie(key($cookie), $cookie[key($cookie)], time() + 86400, "/");
    }

    return strlen($headerLine); // Needed by curl
}
MarkTierney1975 commented 8 years ago

I'm testing this locally btw.

Bukashk0zzz commented 8 years ago

Hi, Package working. I tested it with Laravel 5.1 and Laravel 5.0

PHPBB is on same domain?

MarkTierney1975 commented 8 years ago

Yes, same domain in a subfolder.

Bukashk0zzz commented 8 years ago

Not sure how can I help you. This module now works in production with laravel 5.1 and all ok. Need more info about your setup.

Do you change url in config? If you login in laravel do you auth in phpbb?

MarkTierney1975 commented 8 years ago

Hi no worries, I've had to move on and use something else so I've not got it installed to test anymore.

From memory I couldn't login to the forums either via Laravel auth or using the forum login. I followed the installation instructions and changed the url, set the key etc.

Bukashk0zzz commented 8 years ago

So I close the issue then. If you had new info I will reopen it.