<?php

/**
 * @package    jelix-modules
 * @subpackage jauth
 *
 * @author     Laurent Jouanneau
 * @contributor Antoine Detante
 *
 * @copyright  2005-2023 Laurent Jouanneau, 2007 Antoine Detante
 *
 * @see       https://www.jelix.org
 * @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
 */
class LoginFormZone extends jZone
{
    protected $_tplname = 'login.form';

    protected function _prepareTpl()
    {
        $this->_tpl->assign('login', $this->param('login', ''));
        $this->_tpl->assign('failed', $this->param('failed'));
        $this->_tpl->assign('auth_url_return', $this->param('auth_url_return', ''));

        $this->_tpl->assign('user', jAuth::getUserSession());
        $this->_tpl->assign('isLogged', jAuth::isConnected());
        $this->_tpl->assign('showRememberMe', $this->param('showRememberMe'));
    }
}
