Project

General

Profile

Actions

Elektronische Signatur » History » Revision 1

Revision 1/9 | Next »
Carsten Rose, 12.04.2021 16:39


Elektronische Signatur

  • Person A loest im Tool eine Email aus, die an Person B gesendet wird.
  • Die Email enthaelt eine URL mit einem zeitlich beschraenktes Einmal-Token.
  • Person B empfaengt die Email und klickt auf dem Link.
  • 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.

Umsetzung:

  • QFQ Link, auf den User A klickt um die Mail auszuloesen:
    #
    # {{action:SE::w}}'='sendApprovalMail'
    # {{appId:RE}}
    #
    10 {
      # Take care that the SIP variable is cleared after first use.
      sql = SELECT '' FROM (SELECT '') AS fake WHERE '{{action:SE::w}}'='sendApprovalMail'
    
      # Be sure an auth token is defined
      20.sql = UPDATE Application SET auth='{{random:V}}' WHERE auth='' AND id={{appId:S}}
    
      30 {
        sql = SELECT n.text AS _body
                      n.title AS _subject
                      app.auth AS _auth
                      QDATE_FORMAT(app.deadline) AS _deadline
                FROM Note AS n, Application AS app
                WHERE n.reference='Email Template: Approve Mail'
                  AND app.id={{appId:R}}
    
        40.sql = SELECT 'to:<email>|from:<email>|subject:{{subject:R}}|body:{{body}}|grid:<grid>|xid:<xId>' AS _sendmail
      }
    
    }
    
    # Link to initiate email
    100.sql = SELECT 'p:{{pageAlias:T}}&action=sendApprovalMail&appId={{appId:R}}|q:An approval mail will be sent|s|b:Send mail' AS _link
    
  • Email Template (z.B. Notiz Record) mit Variablen:
Dear {{name:R}}
...
Please click {{baseUrl:Y}}/index.php?id=confirmation&auth={{auth:R}}.
...
The applicants deadline is {{deadline:R}}.
...

*

Updated by Carsten Rose about 3 years ago · 1 revisions