Project

General

Profile

Elektronische Signatur » History » Version 1

Carsten Rose, 12.04.2021 16:39

1 1 Carsten Rose
h1. Elektronische Signatur
2
3
* Person A loest im Tool eine Email aus, die an Person B gesendet wird.
4
* Die Email enthaelt eine URL mit einem zeitlich beschraenktes Einmal-Token.
5
* Person B empfaengt die Email und klickt auf dem Link.
6
* Bei Aufruf der URL wird entweder ein Form geoeffnet (um weitere Information abzufragen) oder der Link loest direkt eine Action aus das etwas bestaetigt wird.
7
8
9
h1. Umsetzung:
10
11
* QFQ Link, auf den User A klickt um die Mail auszuloesen:
12
<pre>
13
#
14
# {{action:SE::w}}'='sendApprovalMail'
15
# {{appId:RE}}
16
#
17
10 {
18
  # Take care that the SIP variable is cleared after first use.
19
  sql = SELECT '' FROM (SELECT '') AS fake WHERE '{{action:SE::w}}'='sendApprovalMail'
20
21
  # Be sure an auth token is defined
22
  20.sql = UPDATE Application SET auth='{{random:V}}' WHERE auth='' AND id={{appId:S}}
23
24
  30 {
25
    sql = SELECT n.text AS _body
26
                  n.title AS _subject
27
                  app.auth AS _auth
28
                  QDATE_FORMAT(app.deadline) AS _deadline
29
            FROM Note AS n, Application AS app
30
            WHERE n.reference='Email Template: Approve Mail'
31
              AND app.id={{appId:R}}
32
33
    40.sql = SELECT 'to:<email>|from:<email>|subject:{{subject:R}}|body:{{body}}|grid:<grid>|xid:<xId>' AS _sendmail
34
  }
35
36
}
37
38
# Link to initiate email
39
100.sql = SELECT 'p:{{pageAlias:T}}&action=sendApprovalMail&appId={{appId:R}}|q:An approval mail will be sent|s|b:Send mail' AS _link
40
</pre>
41
42
43
44
45
46
* Email Template (z.B. Notiz Record) mit Variablen:
47
48
<pre>
49
Dear {{name:R}}
50
...
51
Please click {{baseUrl:Y}}/index.php?id=confirmation&auth={{auth:R}}.
52
...
53
The applicants deadline is {{deadline:R}}.
54
...
55
</pre>
56
57
*