Prado\Security\TAuthManager::switchUser PHP Метод

switchUser() публичный Метод

This method will logout the current user first and login with a new one (without password.)
public switchUser ( $username ) : boolean
Результат boolean if the switch is successful
    public function switchUser($username)
    {
        if (($user = $this->_userManager->getUser($username)) === null) {
            return false;
        }
        $this->updateSessionUser($user);
        $this->getApplication()->setUser($user);
        return true;
    }