Page Index Toggle Pages: 1 2 [3] 
Topic Tools
Very Hot Topic (More than 25 Replies) Username=Email Address Breaks Password Retrival (Read 1,945 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,480
Location: Earth

YaBB 2.6.1
Re: Username=Email Address Breaks Password Retrival
Reply #30 - Apr 24th, 2014 at 11:15pm
Post Tools
The fix for 2.4, 2.5 and 2.5.2

In LogInOut.pl find
Code (Perl)
Select All
print FILE qq~\$pass{"$key"} = '$value';\n~; 


replace with:
Code (Perl)
Select All
print FILE qq~\$pass{'$key'} = '$value';\n~; 



This code is in two places in LogInOut.pl and both need to be replaced.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,728
Location: Los Angeles

YaBB 2.4
Locked topic: Re: Username=Email Address Breaks Password Retrival
Reply #31 - Apr 25th, 2014 at 3:41pm
Post Tools
Note to Dandello: I'm thinking it's best for you to update your post to make it more complete since that's the place full instructions should be; not here. As such, please feel free to modify this post of mine, or better yet, delete it altogether since information coming only from you would be best. Thanks.

************************************

Because Dandello locked her topic, I've quoted her post in that topic below so that anyone using version 2.4 can find {"$key"} in both places of the LogInOut.pl file; not just the one place she mentions.

As close as this forum allows, the following is what Dandello posted (source):

Quote:
The fix for 2.4, 2.5 and 2.5.2

In LogInOut.pl find
Code
Select All
print FILE qq~\$pass{"$key"} = '$value';\n~; 


replace with:
Code
Select All
print FILE qq~\$pass{'$key'} = '$value';\n~; 



This code is in two places in LogInOut.pl and both need to be replaced.

What Dandello noted above is the 1st place in the LogInOut.pl file that you will find {"$key"}. In my 2.4 forum it's located on line 311 although yours may be found on a different line.

The 2nd place is as follows (on line 363 in my forum; yours may be different):

In LogInOut.pl find
Code
Select All
print FORGOTTEN qq~\$pass{"$key"} = '$value';\n~; 


replace with:
Code
Select All
print FORGOTTEN qq~\$pass{'$key'} = '$value';\n~; 


To qualify my addition to Dandello's instructions, it should be noted that I haven't had a problem with email addresses breaking the password retrieval function. As such, I have not made these changes, which are evidently needed to fix what I think has otherwise been classified as a bug.

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,480
Location: Earth

YaBB 2.6.1
Re: Username=Email Address Breaks Password Retrival
Reply #32 - Apr 25th, 2014 at 5:36pm
Post Tools
It's not using email addresses as the personal identifier in the login field that breaks things - it's when the user ID has an '@' in it. That breaks the password retrieval.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Topic Tools