Skip to content

Gregor-Agnes/onetimesecret

Repository files navigation

onetimesecret

Extension for TYPO3, according to onetimesecret.com

What does it do?

  • Create one time links to secret phrases, e.g. passwords you don't want to sent via email
  • optionally inform admin, if secret was successfully delivered

Install

  • Install via extension manager or
  • Install via composer
  • Include static template

Configuration

Parameter Description Type, Validation Default
overrideFlexformSettingsIfEmpty Fields, which sould be overridden from TypoScript if left blank in the flexform (like in tx_news, thx to Georg Ringer!). string adminName, adminEmail
adminEmail Email address for admin mails, leave blank, if you do not want to get informed string, email
adminName Name in admin mails string Site Admin

Site config (for nicer link)

routeEnhancers:
  Onetimesecret:
    type: Extbase
    extension: Onetimesecret
    plugin: Onetimesecret
    routes:
      -
        routePath: '/showsecret/{token}/{uid}'
        _controller: 'Onetimesecret::showSecret'
        _arguments:
          token: token
          uid: uid

To do

  • write a scheduler task to remove expired link