$this->port = isset($params['port']) ? $params['port'] : 1247;
$this->user = isset($params['user']) ? $params['user'] : '';
$this->password = isset($params['password']) ? $params['password'] : '';
- $this->use_logon_credentials = $params['use_logon_credentials'];
+ $this->use_logon_credentials = $params['use_logon_credentials'] === 'true' ? true : false;
$this->zone = $params['zone'];
$this->auth_mode = isset($params['auth_mode']) ? $params['auth_mode'] : '';
}
// take user and password from the session
- if ($this->use_logon_credentials === "true" && \OC::$session->exists('irods-credentials'))
+ if ($this->use_logon_credentials && \OC::$session->exists('irods-credentials'))
{
$params = \OC::$session->get('irods-credentials');
$this->user = $params['uid'];