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