appdb/ include/user.php unit_test/test_user.ph ...
ChangeSet ID: 31279 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/07/26 09:39:15 Modified files: include : user.php unit_test : test_user.php Added files: unit_test : test_user_password_migration.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Add support for mysql versions >=4.0x by adding multiple hash attempts when logging in. We now attempt sha1(), password() and if mysql >= 4.0x, old_password() hashes. Switch the default user hash from mysql's password() function to a sha1() hash. Update user::login() to flag logins with password() and old_password() hashes. If the flag is set we call user::update_password() to update the users password hash to one generated from the sha1 of the users password. Add a unit test to test logging in and upgrading from the old hashes. Patch: http://cvs.winehq.org/patch.py?id=31279 Old revision New revision Changes Path 1.94 1.95 +57 -6 appdb/include/user.php 1.11 1.12 +4 -1 appdb/unit_test/test_user.php Added 1.1 +0 -0 appdb/unit_test/test_user_password_migration.php
participants (1)
-
WineHQ