SmItH197 / SteamAuthentication

A simple PHP Authentication that enables steam users to log into their steam account to access content!
MIT License
445 stars 144 forks source link

Undefined offset #219

Closed TheFlyingApple closed 6 years ago

TheFlyingApple commented 6 years ago

Hello,

Everytime i try to log in, on my website i get this PHP error:

PHP Notice: Undefined offset: 1 in steamauth/steamauth.php on line 34

What is happening?

alekseitsvetkov commented 6 years ago

Same problem - $_SESSION['steamid'] is empty.

alekseitsvetkov commented 6 years ago

Steam changed this url "http://steamcommunity.com/openid/id/" to https. Just change url "https://steamcommunity.com/openid/id/"

SmItH197 commented 6 years ago

@TheFlyingApple and @alekseytsvetkov - could you let me know if that fixed the problem?

Vigilante13 commented 6 years ago

Yes that fixed the issue.

Specifically its on this line in steamauth.php:

$ptn = "/^http:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";

You have to change the http to https:

$ptn = "/^https:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";

Mo45 commented 6 years ago

Hello there guys. I have changed http to https in steamauth.php But still have this error:

Unknown SSL protocol error in connection to steamcommunity.com:443

SmItH197 commented 6 years ago

@Mo45 could you create a new issue please stating what version your using and any relevant code changes you've made and errors your getting, thanks.