source/Application/Model/User.php
protected function onLogin($userName, $password)
    {
        /** Demo shop log in */
        if (!$this->isLoaded() && $this->_isDemoShop() && $this->isAdmin()) {
            $database = DatabaseProvider::getDb();
            $userId = $database->getOne($this->_getDemoShopLoginQuery($userName, $password));
            if ($userId) {
                $this->load($userId);
            }
        }
    }
protected function onLogin($userName, $password)
    {
        /** Demo shop log in */
        if (!$this->isLoaded() && $this->_isDemoShop() && $this->isAdmin()) {
            $database = DatabaseProvider::getDb();
            $userId = $database->getOne($this->_getDemoShopLoginQuery($userName, $password));
            if ($userId) {
                $this->load($userId);
            }
        }
    }
protected function onLogin ( $ userName , $ password ) { /** Demo shop log in */ if ( ! $ this -> isLoaded ( ) && $ this -> _isDemoShop ( ) && $ this -> isAdmin ( ) ) { $ database = DatabaseProvider :: getDb ( ) ; $ userId = $ database -> getOne ( $ this -> _getDemoShopLoginQuery ( $ userName , $ password ) ) ; if ( $ userId ) { $ this -> load ( $ userId ) ; } } }
Method is used for overriding and add additional actions when logging in.

@param string $userName
@param string $password
Method is used for overriding and add additional actions when logging in .