PHP Classes

User is a String

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  User is a String  >  (Un) Subscribe thread alerts  
Subject:User is a String
Summary:In PHP Class, User is an Int - Need to be a String
Messages:3
Author:Matt Donders
Date:2014-03-26 15:06:46
Update:2014-03-26 20:22:33
 

  1. User is a String   Reply   Report abuse  
Picture of Matt Donders Matt Donders - 2014-03-26 15:06:46
I absolutely love this - it makes my OAuth stuff so much easier, but trying to figure something out.

I have a service sending me a unique identifier per user which is a 31-character string. I changed the type of 'user' in the database from INT to TEXT and it accepts the value just fine. BUT for some reason if I change session and try to authenticate using the same identifier it prompts me to login and creates another entry in the database.

I have changed all 'i' entries to 's' entries in the array in database_oauth_client.php that related to the $user variable and still no luck.

Any advice or help?

Thanks in advance!

  2. Re: User is a String   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-03-26 20:12:12 - In reply to message 1 from Matt Donders
There was a bug in a past version that caused that effect. Are you using the latest version?

  3. Re: User is a String   Reply   Report abuse  
Picture of Matt Donders Matt Donders - 2014-03-26 20:22:33 - In reply to message 1 from Matt Donders
Yup using the latest version, but I figured it out. I kept calling my login page over and over again instead of calling login once and then access again.

All fixed up - thanks again for this amazing library.