Prado\Security\TAuthManager::switchUser PHP Méthode

switchUser() public méthode

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