public function retrieveRegistrationForm() { $temp_key = RublonSignatureWrapper::generateRandomString(self::SECRET_KEY_LENGTH); $this->saveInitialParameters($temp_key, time()); $reg_form = $this->getRegistrationForm(); return $reg_form; }
/** * Initialize the module's registration process by generating temporary key. * * @return bool * @final */ protected final function initialize() { if ($this->canUserActivate()) { $tempKey = RublonSignatureWrapper::generateRandomString(self::SECRET_KEY_LENGTH); $this->saveInitialParameters($tempKey, time()); $this->stdOut($this->getRegistrationForm()); } else { throw new UserUnauthorized_RublonConsumerException(); } }