1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 07:50:57 +01:00
phorge-phorge/resources/sql/autopatches/20140113.legalpadsig.1.sql
Bob Trahan 41d2a09536 Legalpad - make it work for not logged in users
Summary: Adds "verified" and "secretKey" to Legalpad document signatures. For logged in users using an email address they own, things are verified right away. Otherwise, the email is sent a verification letter. When the user clicks the link the signature is marked verified.

Test Plan: signed the document with a bogus email address not logged in. verified the email that would be sent looked good from command line. followed link and successfully verified bogus email address

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, epriestley, aran, asherkin

Maniphest Tasks: T4283

Differential Revision: https://secure.phabricator.com/D7930
2014-01-14 17:17:18 -08:00

8 lines
312 B
SQL

ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature
ADD secretKey VARCHAR(20) NOT NULL COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature
ADD verified TINYINT(1) DEFAULT 0;
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature
ADD KEY `secretKey` (secretKey);