Prado\Security\TAuthManager::switchUser PHP Method

switchUser() public method

This method will logout the current user first and login with a new one (without password.)
public switchUser ( $username ) : boolean
return 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;
    }