 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
August 13th, 2008, 10:10 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
| Illegal Username Characters?
I use vBulletin integration and I'm wondering if there are any limitations on the type of characters that can be used in usernames? I currently have users with '&' in their names, but for some reason they cannot login, despite typing the right passwords. I have confirmed this on my own.
Is this a limitation that I'm unaware of or a bug?
|
| |
August 13th, 2008, 10:20 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Do you mean they cant login to vbulletin or cant login to photopost? If your using vb integration the login prompt is vb's
Please explain your issue a little more indepth.
|
| |
August 13th, 2008, 10:27 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
I use the vbulletin registration, which works, but I use the photopost login page for logging in. authenticate() is returning false for valid logins (with &)
|
| |
August 13th, 2008, 10:29 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
If I log in directly to the forums, it works fine.
|
| |
August 13th, 2008, 10:51 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Interesting so how is the username stored in your database?
|
| |
August 13th, 2008, 11:05 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
hmmm... it's stored as 'a&a' (for a&a)
this might be going somewhere...
|
| |
August 13th, 2008, 11:08 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Okay try this in vb3.php add the line in bold around line 22 Code: Content visible to verified customers only.
|
| |
August 13th, 2008, 01:34 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
[code]
SELECT userid,username,email,password,usergroupid,timezoneoffset,salt,lastactivity,membergroupids FROM vb_user WHERE username='a&a'
[code]
in get_userinfo, the above line is executed and returns no results, but if i do a straight query on the database with that exact code, then it selects fine..
|
| |
August 13th, 2008, 02:21 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
What happens when you use this code?
please email us ftp url login and photopost url login and if possible database logins to support at photopost dot com
|
| |
August 13th, 2008, 02:32 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
I think that code you gave me fixed it... I was double encoding the authuser.. so i took out the encoding in typecast (its simply a trim) and I added the htmlspecialchars to get_userinfo...
That seemed to have fixed the problem.
|
| |
August 13th, 2008, 02:34 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
ah okay no problem figured it would work thats why I asked for info as I would not understand why it would not work based on what you have told me |
| |
August 13th, 2008, 02:42 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2008
Posts: 34
|
yes, its odd to me why in the first place that vbulletin stores users with special chars as the html.... thats how it seems to be right? (but at the same time it doesn't encode passwords before they are md5'd and compared.)
other then that, thanks for the help at squashing the bug! boy that was annoying...
|
| |
August 13th, 2008, 03:37 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
How vb stores the username is up to them really I have seen it both ways in software.
Not a problem glad to assist
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:59 AM. | |