[BUGFIX] Only create one keypair in rsaauth 09/26709/2
authorTom Ruether <info@redscout.de>
Fri, 22 Nov 2013 10:47:37 +0000 (11:47 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 9 Jan 2014 01:02:08 +0000 (02:02 +0100)
commit7d3eb359506e9963e028c9b3a999f3ad1b86e49e
tree52965b26bb6e89cb1b3074e51b4fbd6865d22e5e
parenta31b3252fe3a4f4ed43c9192e3f4209e525eb56d
[BUGFIX] Only create one keypair in rsaauth

If there are two login forms on one page the second form's private
key overwrites the first form's private key so the first form doesn't
work. With this patch only one keypair gets created and it doesn't
matter how many login forms you have one one page.

Change-Id: I42660140aea72d1888cc73d56e83b823206a0797
Fixes: #24877
Fixes: #6708
Releases: 6.2, 6.1, 6.0, 4.5
Reviewed-on: https://review.typo3.org/26709
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/rsaauth/Classes/Backend/AbstractBackend.php
typo3/sysext/rsaauth/Classes/Backend/CommandLineBackend.php
typo3/sysext/rsaauth/Classes/Backend/PhpBackend.php
typo3/sysext/rsaauth/Classes/Hook/FrontendLoginHook.php
typo3/sysext/rsaauth/Classes/Keypair.php
typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php [new file with mode: 0644]
typo3/sysext/rsaauth/Tests/Unit/Backend/PhpBackendTest.php [new file with mode: 0644]
typo3/sysext/rsaauth/Tests/Unit/KeypairTest.php [new file with mode: 0644]