public function create($urlArgsArray) { $this->makeSurePersonprofileExists(); if (!empty($this->errorMessage)) { return $this->showError(); } $this->curlsMode = 'Create'; $this->initializeTask(); /* initialize form */ $f = new owebp_InputForm(); $f->form['title'] = $this->getFormTitle(); $f->curlsMode = $this->curlsMode; $f->subTaskKeyToSave = $this->subTaskKeyToSave; $f->collectionName = $this->collectionName; $rStr = $f->showForm($urlArgsArray, '/' . $this->collectionName . '/save', array(), $this->fields); $rStr .= $this->showLinks(); return $rStr; }
public function forgetpassword($urlArgsArray) { $this->debugPrintArray($_SESSION); $rStr = ''; /* this process is to receive login credentials for authentication */ $f = new owebp_InputForm(); $f->form['label'] = 'left'; $f->form['title'] = 'Password Update and Account Activation'; if (array_key_exists('ea', $urlArgsArray)) { $this->fields['email_address']['value'] = $urlArgsArray['ea']; } /* unset ( $this->fields ['password'] ); */ unset($this->fields['provider']); unset($this->fields['person']); unset($this->fields['veryfied']); $f->curlsMode = 'Forget Password'; $rStr .= 'Note: To just activate account you can keep password as same as current.' . $f->showForm($urlArgsArray, '/user/sendactivationemail', array(), $this->fields); return $rStr; }