Beispiel #1
0
 /**
  * Removes all accesses for the current user.
  */
 public static function removeAccess()
 {
     Minz_Session::_param('loginOk');
     self::$login_ok = false;
     $conf = Minz_Configuration::get('system');
     Minz_Session::_param('currentUser', $conf->default_user);
     switch ($conf->auth_type) {
         case 'form':
             Minz_Session::_param('passwordHash');
             FreshRSS_FormAuth::deleteCookie();
             break;
         case 'persona':
             Minz_Session::_param('mail');
             break;
         case 'http_auth':
         case 'none':
             // Nothing to do...
             break;
         default:
             // TODO: extensions
     }
 }