Revision: 1115
http://mrbs.svn.sourceforge.net/mrbs/?rev=1115&view=rev
Author: jberanek
Date: 2009-05-28 22:23:30 +0000 (Thu, 28 May 2009)
Log Message:
-----------
* Made backwards-compatibility special case in auth_db_ext.inc more
clear.
Modified Paths:
--------------
mrbs/trunk/web/auth_db_ext.inc
Modified: mrbs/trunk/web/auth_db_ext.inc
===================================================================
--- mrbs/trunk/web/auth_db_ext.inc 2009-05-26 14:49:43 UTC (rev 1114)
+++ mrbs/trunk/web/auth_db_ext.inc 2009-05-28 22:23:30 UTC (rev 1115)
@@ -52,11 +52,6 @@
$user = addslashes($user);
- if ($auth['db_ext']['use_md5_passwords'] == 1)
- {
- $pass = md5($pass);
- }
-
$query = "SELECT " . $auth['db_ext']['column_name_password'] .
" FROM " . $auth['db_ext']['db_table'] .
" WHERE ". $auth['db_ext']['column_name_username'] . "='$user'";
@@ -93,6 +88,13 @@
default:
// Otherwise assume plaintext
+
+ // Backwards-compatibility config option
+ if ($auth['db_ext']['use_md5_passwords'] == 1)
+ {
+ $pass = md5($pass);
+ }
+
if ($pass == $row[0])
{
$retval = 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits