[BUGFIX] rsaauth PHP backend calls key generation on every request
authorDaniel Po╠łtzinger <poetzinger@aoemedia.de>
Mon, 9 Apr 2012 19:45:20 +0000 (21:45 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 14 Apr 2012 18:17:25 +0000 (20:17 +0200)
commit4c519d745ef0d551d64afd68e5d8b894b330e114
tree39834abcbd2ea654b5ca9c88fbad829f5e9c1e27
parentcac28da5c21ee6e1f5ade7bb2cee85e959f371d3
[BUGFIX] rsaauth PHP backend calls key generation on every request

Problem: openssl_pkey_new is not a simple cheap operation and
for minimal requests (e.g. ajax), this can consume up to 10% of the request time.

Solution: Do not process the login fields if no login is triggered.

This commit will save even more processing power as the whole service chain
for processing the login fields is not instantiated anymore.

Change-Id: I34eae9978a8cb0ff2b985a23a358dc88f55ab171
Fixes: #33165
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/10200
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Philipp Gampe
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
t3lib/class.t3lib_userauth.php