Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

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
Line 17 
Line 17 
  * 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:
Line 81  class AuthDB
Line 81  class AuthDB
   
         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];
                         }                          }
                 }                  }
         }          }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top