Welcome, Guest. Please Login or Register.
November 26, 2024, 04:41:40 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Converters  |  Good fix for Password problems « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Good fix for Password problems  (Read 3249 times)
Fermious
Noobie
*
Posts: 16


I'm a llama!

Good fix for Password problems
« on: January 13, 2002, 06:29:26 PM »
Reply with quote

some of you are having problems with the password after converting, because of the Password mod you installed.  Well, here is a solution:  instead of converting, then getting yabb to email you the password (which in some cases, it still doesn't work for some odd reason) then when you still have yabb gold, uninstall the mod, and get everyone to update their passwords before you upgrade.  This way, when you convert, it will go smooth and the passwords will work perfectly.  This solution isn't for everyone, and hopefully you all still kept a backup of your old board if you already upgraded!  Anyhoo, i am still looking for a better solution, and i am working on a script that reverses the passwords, but i'm trying to figure out the crypt used.

Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Good fix for Password problems
« Reply #1 on: January 13, 2002, 09:50:13 PM »
Reply with quote

Crypt is used for the purpose as it's not supposed to be able to be decrypted.

Logged

Hac Nho
Noobie
*
Posts: 3


I love YaBB SE!

Re:Good fix for Password problems
« Reply #2 on: January 14, 2002, 10:48:16 AM »
Reply with quote

Then set the crypt's seed to be the same with the other version.

Here we go:

<id>
Fix YaBB-SE to work with crypted password
</id>

<version>
1.0
</version>

<mod info>
If you have YaBB1G, with password encrypted mod installed, use this mod. Remember NOT to crypt PASSWORD in converter.php.
Default "pwseed" for yabb1G is "ya"
</mod info>

<author>
HacNho
</author>

<homepage>

</homepage>

<edit file>
/Sources/LogInOut.php
</edit file>

<search for>
   $passwrd = crypt($passwrd,substr($passwrd,0,2));
</search for>

<replace>
   $passwrd = crypt($passwrd,$pwseed);
</replace>

<edit file>
/Sources/Register.php
</edit file>

<search for>
   global $allow_hide_email;
</search for>

<replace>
   global $allow_hide_email,$pwseed;
</replace>

<search for>
   $queryPasswdPart = crypt($member['passwrd1'],substr($member['passwrd1'],0,2));
</search for>

<replace>
   $queryPasswdPart = crypt($member['passwrd1'],$pwseed);
</replace>

<edit file>
/Sources/Profile.php
</edit file>

<search for>
      if($member['passwrd1'] != ''){ $queryPasswdPart="passwd='".crypt($member['passwrd1'], substr($member['passwrd1'],0,2))."',"; }
</search for>

<replace>
      if($member['passwrd1'] != ''){ $queryPasswdPart="passwd='".crypt($member['passwrd1'], $pwseed)."',"; }
</replace>

<edit file>
/Sources/Subs.php
</edit file>

<search for>
$pwseed = 'ys';
</search for>

<replace>
$pwseed = 'ya';
</replace>


<edit file>
converter.php
</edit file>

<search for>
      $password = crypt (stripcslashes($userData[0]),substr(stripcslashes($userData[0]),0,2));
</search for>

<replace>
      $password = stripcslashes($userData[0]);
</replace>
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  Good fix for Password problems « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.097 seconds with 21 queries.