Diff for phpPlatonLib/Auth_AuthDB/AuthDB.php between version 1.12 and 1.13
| version 1.12, 2007/02/24 22:57:41 |
version 1.13, 2007/09/22 05:35:57 |
|
|
| * http://platon.sk/projects/phpPlatonLib/ |
* http://platon.sk/projects/phpPlatonLib/ |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.11 2003-07-27 15:42:30 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.12 2007-02-24 22:57:41 nepto Exp $ */ |
| |
|
| /* |
/* |
| * History: |
* History: |
|
|
| |
|
| function assignData() |
function assignData() |
| { |
{ |
| |
$username_var = trim($this->_options['username_var']); |
| |
$password_var = trim($this->_options['password_var']); |
| |
|
| |
if (strlen($username_var) <= 0) { |
| |
$username_var = 'username'; |
| |
} |
| |
if (strlen($password_var) <= 0) { |
| |
$password_var = 'password'; |
| |
} |
| |
|
| /* Empty passwords are allowed. Empty usernames not. */ |
/* Empty passwords are allowed. Empty usernames not. */ |
| |
|
| if (isset($_POST['username']) |
if (isset($_POST[$username_var]) && $_POST[$username_var] != '') { |
| && $_POST['username'] != '') { |
$this->_props['username'] = $_POST[$username_var]; |
| $this->_props['username'] = $_POST['username']; |
|
| |
|
| if (isset($_POST['password'])) { |
if (isset($_POST[$password_var])) { |
| $this->_props['password'] = $_POST['password']; |
$this->_props['password'] = $_POST[$password_var]; |
| } |
} |
| } |
} |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|