/** * This method updates users email for the user who is matching SSO user Id * * @access public * * @param string $sessionId * @param int $ssoUserId * @param string $email * @return bool */ function updateUserEmailBySsoId($sessionId, $ssoUserId, $email) { if ($this->verifySession($sessionId)) { return $this->_validateResult($this->_dllUser->updateUserEmailBySsoId($ssoUserId, $email)); } else { return false; } }
function linkUserToManagerAccount($sessionId, $userId, $managerAccountId, $aPermissions) { if ($this->verifySession($sessionId)) { return $this->_validateResult($this->_dllUser->linkUserToManagerAccount($userId, $managerAccountId, $aPermissions)); } else { return false; } }
/** * A method to perform DLL level validation * * @param OA_Dll_User $oUser * @param OA_Dll_UserInfo $oUserInfo * @return boolean */ function dllValidation(&$oUser, &$oUserInfo) { if (!isset($oUserInfo->userId)) { if (!$oUser->checkStructureRequiredStringField($oUserInfo, 'username', 64) || !$oUser->checkStructureRequiredStringField($oUserInfo, 'password', 32)) { return false; } } if (isset($oUserInfo->password)) { // Save MD5 hash of the password $oUserInfo->password = md5($oUserInfo->password); } return true; }