Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/storage/LegalpadDocumentSignature.php
Show All 31 Lines | return array( | ||||
'signerPHID' => 'phid?', | 'signerPHID' => 'phid?', | ||||
'signerName' => 'text255', | 'signerName' => 'text255', | ||||
'signerEmail' => 'text255', | 'signerEmail' => 'text255', | ||||
'secretKey' => 'bytes20', | 'secretKey' => 'bytes20', | ||||
'verified' => 'bool?', | 'verified' => 'bool?', | ||||
'isExemption' => 'bool', | 'isExemption' => 'bool', | ||||
'exemptionPHID' => 'phid?', | 'exemptionPHID' => 'phid?', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_signer' => array( | |||||
'columns' => array('signerPHID', 'dateModified'), | |||||
), | |||||
'secretKey' => array( | |||||
'columns' => array('secretKey'), | |||||
), | |||||
'key_document' => array( | |||||
'columns' => array('documentPHID', 'signerPHID', 'documentVersion'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function save() { | public function save() { | ||||
if (!$this->getSecretKey()) { | if (!$this->getSecretKey()) { | ||||
$this->setSecretKey(Filesystem::readRandomCharacters(20)); | $this->setSecretKey(Filesystem::readRandomCharacters(20)); | ||||
} | } | ||||
return parent::save(); | return parent::save(); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |