Commit d81a58aa authored by Carsten  Rose's avatar Carsten Rose
Browse files

Update self registration.

parent 936aeed9
Pipeline #5251 passed with stages
in 3 minutes and 54 seconds
...@@ -37,8 +37,10 @@ ...@@ -37,8 +37,10 @@
Use Case Use Case
======== ========
* Create the request pages and tt-content records. To install the following use cases, please:
* Copy the JSON form code to a new form (open Form in JSON mode).
* Create the page and tt-content records.
* Copy the JSON form code to a new empty form (open Form in JSON mode).
.. _`self-registration`: .. _`self-registration`:
...@@ -51,21 +53,21 @@ Concept: ...@@ -51,21 +53,21 @@ Concept:
* Form 'Request password reset link' * Form 'Request password reset link'
* Input: email address. * Input: email address.
* Send a mail with a URL (incl. a token) which is time limited. * Send a mail to the given email address with a password reset URL (incl. a token) which is time limited.
* Only send mail if the mail address is known. * Only send mail if the mail address is known!
* If email is not found, the user should not be noticed. * If email is not found, the user should not be noticed.
* Create a new Person.auth token. * Create a new ``Person.auth`` token.
* Set Person.authExpired = NOW + ? days. * Set ``Person.authExpired = NOW + ? days``.
* Under the URL a form 'Set password' opens. * When the user opens the URL, the form 'Set password' is shown.
* The user types in his new password. * The user types in the new password.
* On Save: * On Save:
* If the FE account does not exist, it will be created. * If the FE account does not exist, it will be created.
* Set the FE user password. * Set the FE user password.
* Clear Person.authExpired * Clear ``Person.authExpired``.
Request password reset link Request password reset link
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...@@ -73,15 +75,17 @@ Request password reset link ...@@ -73,15 +75,17 @@ Request password reset link
Table: Person Table: Person
""""""""""""" """""""""""""
CREATE TABLE `Person` ( Person::
`id` int(11) UNSIGNED NOT NULL,
`lastName` varchar(64) NOT NULL DEFAULT '', CREATE TABLE `Person` (
`firstName` varchar(64) NOT NULL DEFAULT '', `id` int(11) UNSIGNED NOT NULL,
`email` varchar(128) NOT NULL, `lastName` varchar(64) NOT NULL DEFAULT '',
`account` varchar(128) NOT NULL, `firstName` varchar(64) NOT NULL DEFAULT '',
`auth` varchar(32) NOT NULL, `email` varchar(128) NOT NULL,
`authExpire` datetime NOT NULL, `account` varchar(128) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1; `auth` varchar(32) NOT NULL,
`authExpire` datetime NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1;
Page: reset Page: reset
""""""""""" """""""""""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment