// First get a GuestLogin instance
$loginInstance = ObjectFactory::createObjectByConfiguredName('guest_login_class');
- // First set request and response instance
- $loginInstance->setRequestInstance($requestInstance);
-
// Encrypt the password
$loginInstance->encryptPassword('passwd');