developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #766: #766-trunk-updateUser.patch

File #766-trunk-updateUser.patch, 1.2 KB (added by bibo, 12 years ago)

one-liner

  • lib/jelix/auth/jAuth.class.php

     
    33* @package    jelix
    44* @subpackage auth
    55* @author     Laurent Jouanneau
    6 * @contributor Frédéric Guillot, Antoine Detante, Julien Issler
     6* @contributor Frédéric Guillot, Antoine Detante, Julien Issler, Dominique Papin
    77* @copyright  2001-2005 CopixTeam, 2005-2008 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante
    8 * @copyright  2007-2008 Julien Issler
     8* @copyright  2007-2008 Julien Issler, 2008 Dominique Papin
    99*
    1010* This classes were get originally from an experimental branch of the Copix project (Copix 2.3dev, http://www.copix.org)
    1111* Few lines of code are still copyrighted 2001-2005 CopixTeam (LGPL licence).
     
    169169
    170170        if(self::isConnected() && self::getUserSession()->login === $user->login){
    171171            $config = self::_getConfig();
    172             $_SESSION[$config['session_name']] = self::getUser($login);
     172            $_SESSION[$config['session_name']] = $user;
    173173        }
    174174        jEvent::notify ('AuthUpdateUser', array('user'=>$user));
    175175        return true;