Changeset 103 for trunk/services


Ignore:
Timestamp:
Apr 19, 2006 3:14:28 AM (18 years ago)
Author:
scdev
Message:

Q - Cleaned up Auth_File to work more like Auth_SQL, and fixed a few bugs here and there.

Location:
trunk/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/login.php

    r102 r103  
    1616
    1717if (getFormdata('username', false)) {
    18     /* form has been submitted, check if the user login information is correct */
     18    // Form has been submitted, check if the user login information is correct.
    1919
    2020    if ($auth->login($frm['username'], $frm['password'])) {
  • trunk/services/logout.php

    r102 r103  
    55 */
    66
    7 require_once 'codebase/lib/RecordLock.inc.php';
    8 
    9 // Delete this admin's record locks.
    10 if (!isset($lock) || !is_a($lock, 'RecordLock')) {
     7if (is_a($auth_object, 'Auth_SQL')) {
     8    // Delete the current user's record locks.
     9    require_once 'codebase/lib/RecordLock.inc.php';
    1110    $lock =& RecordLock::getInstance($auth);
     11    $lock->removeAll($auth->getVal('user_id'));
    1212}
    13 $lock->removeAll($auth->getVal('user_id'));
    1413
    1514// Logout.
Note: See TracChangeset for help on using the changeset viewer.