function create_raas_profile($data)
 {
     try {
         $accountObj = new AccountAPI($this->apiKey, $this->apiSecret, array('output_format' => 'json'));
         return $accountObj->createUserRegistrationProfile($data);
     } catch (LoginRadiusException $e) {
         //watchdog_exception('type', $e);
         if (isset($e->getErrorResponse()->description) && $e->getErrorResponse()->description) {
             return $e->getErrorResponse()->description;
         }
     }
 }
Beispiel #2
0
 /**
  * @param $post_value
  * Set user password.
  */
 public static function setPassword($post_value)
 {
     $data = $_SESSION['userprofile'];
     $userRegUser = new AccountAPI(LR_API_KEY, LR_API_SECRET, array('output_format' => 'json'));
     if (!empty($data->Uid)) {
         $data = array('accountid' => $data->Uid, 'password' => $post_value['password'], 'emailid' => $post_value['emailid']);
         $result = $userRegUser->createUserRegistrationProfile($data);
         if (isset($result->isPosted) && $result->isPosted) {
             self::setMessage('Your Password set successfully');
         } else {
             self::setMessage($result->description);
         }
     }
 }