Ignore:
Timestamp:
Jun 5, 2006 2:34:47 AM (18 years ago)
Author:
scdev
Message:

Q - while we're changing interfaces I'm going to change ->clearAuth() to ->clear().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r148 r149  
    252252     * @access public
    253253     */
    254     function clearAuth()
     254    function clear()
    255255    {
    256256        $db =& DB::getInstance();
     
    274274     * @param mixed $val      Value to set variable to.
    275275     */
    276     function setVal($key, $val)
     276    function set($key, $val)
    277277    {
    278278        if (!isset($_SESSION[$this->_ns]['user_data'])) {
     
    365365        $this->initDB();
    366366
    367         $this->clearAuth();
     367        $this->clear();
    368368
    369369        if (!$user_data = $this->authenticate($username, $password)) {
     
    402402
    403403                // No login: user is blocked!
    404                 $this->clearAuth();
     404                $this->clear();
    405405                return false;
    406406            }
     
    437437                $db->query("DELETE FROM " . $this->_params['db_login_table'] . " WHERE " . $this->_params['db_primary_key'] . " = '" . $this->get('user_id') . "'");
    438438                // No login: reset password because of account abuse!
    439                 $this->clearAuth();
     439                $this->clear();
    440440                return false;
    441441            }
     
    569569
    570570        // User is not authenticated.
    571         $this->clearAuth();
     571        $this->clear();
    572572        return false;
    573573    }
Note: See TracChangeset for help on using the changeset viewer.