SmItH197 / SteamAuthentication

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

Not work at all #201

Closed AngelTs closed 6 years ago

AngelTs commented 6 years ago

After successful login, none user data has been obtained

BlackCetha commented 6 years ago

Please include your configuration in error reports. Make sure to strip your API key.

AngelTs commented 6 years ago

There is no any errors- $steamprofile['avatarfull']= EMPTY?!?!?! Here is the result of example.php after successful log in on my site: ... ... ... Welcome back </br>here is your avatar: </br><img src="" title="" alt="" /><br> ... ... ...

Note #1 : I changed only trhee lines of SteamConfig.php: $steamauth['apikey'] = "MYAPI"; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey $steamauth['domainname'] = "MYSITE"; // The main URL of your website displayed in the login page $steamauth['logoutpage'] = ""; // Page to redirect to after a successfull logout (from the directory the SteamAuth-folder is located in) - NO slash at the beginning! $steamauth['loginpage'] = "example.php";

Note #2 : I am using Steam Guard Mobile Authenticator - is that can be the problem?

bmoconno commented 6 years ago

If you're on a real host, you should probably check your server logs to see what's happening.

I'm betting you've got allow_url_fopen turned off or something silly like that preventing you from actually getting the data back from the API call.

AngelTs commented 6 years ago

@bmoconno Thank you so much for your help- now all works ok. Can you check my other question here