Page Index Toggle Pages: 1
Topic Tools
Normal Topic All number usernames and Registration log (Read 1,242 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,375
Location: Earth

YaBB 2.6.1
All number usernames and Registration log
Sep 13th, 2012 at 3:08pm
Post Tools
This was reported as a bug over in the SourceForge bugtracker section (https://sourceforge.net/tracker/?func=detail&aid=3438813&group_id=9008&atid=1090..., but I can't find exactly the same bug report here.

When Admin Approval is turned on and Encrypt User IDs is checked in Security Settings, if a user name is all numbers the  'Instant Approval' and 'Instant Decline,'  links do nothing and in the 'View Profile and Decide' (when it works)  on the profile screen the user name is truncated to a single digit - the length of the numeric string, not the string itself.

One can get around this by temporarily disabling the  'Encrypt User IDs' in Security Settings.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,375
Location: Earth

YaBB 2.6.1
Re: All number usernames and Registration log
Reply #1 - Sep 13th, 2012 at 8:39pm
Post Tools
What I can confirm as troubleshooting steps - turning off 'Encrypt User IDs' from the Security Settings screen allows the Registration Log to work properly. Setting the specific variable involved ('$do_scramble_id') to undef (in this case it means 'off') while RegistrationLog.pl is being invoked makes the username appear in links as unencrypted but $INFO{'username'} still sends the wrong information to the next step - and that's the part that's failing.

Somebody else want to take a crack at this?
« Last Edit: Sep 13th, 2012 at 8:40pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,375
Location: Earth

YaBB 2.6.1
Re: All number usernames and Registration log
Reply #2 - Sep 15th, 2012 at 2:51pm
Post Tools
I think, maybe possibly, I have this one licked.

In Subs.pl find
Code
Select All
	if ($INFO{'username'} && $do_scramble_id) { $INFO{'username'} = &decloak($INFO{'username'}); }
	if ($FORM{'username'} && $do_scramble_id && $action ne "login2" && $action ne "reminder2" && $action ne "register2" && $action ne "profile2") { $FORM{'username'} = &decloak($FORM{'username'}); }
 


replace with:
Code
Select All
	if ($INFO{'username'} && $do_scramble_id && $action ne 'view_regentry' && $action ne 'del_regentry' && $action ne 'activate' ) { $INFO{'username'} = &decloak($INFO{'username'}); }
	if ($FORM{'username'} && $do_scramble_id && $action ne "login2" && $action ne "reminder2" && $action ne "register2" && $action ne "profile2" && $action ne 'admin_descision') { $FORM{'username'} = &decloak($FORM{'username'}); }
 


  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,375
Location: Earth

YaBB 2.6.1
Re: All number usernames and Registration log
Reply #3 - Nov 6th, 2012 at 9:31pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

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
Topic Tools
 
  « Board Index ‹ Board  ^Top