[TYPO3-core] RFC #14727: Code cleanup: tx_saltedpasswords_sv1 should use parent object instead of TYPO3_MODE

Alexander Stehlik alexander.stehlik at googlemail.com
Fri Jan 7 17:27:58 CET 2011


Reminder #1

2011/1/7 Alexander Stehlik <alexander.stehlik at googlemail.com>:
> Hi,
> This is an SVN patch request.
>
> Type: Code cleanup
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=0014727
>
> Branches:
> trunk
>
> Problem:
> At the moment, tx_saltedpasswords_sv1 uses the TYPO3_MODE constant to
> determine in which table the password should be updated (in
> updatePassword() method).
> This isn't very clean and can lead to problems if you use some kind of
> be/fe login combination extension like simulatebe. There, the user
> logs in to the Frontend, to TYPO3_MODE is "FE" but wants to
> authenticate a BE user.
>
> Solution:
> A simple solution to this is the usage of the $pObj field. See the
> attached patch. It makes things much simpler and cleaner as far as I
> can see.
>
> Kind regards,
>
> Alex.
>



-- 
Alexander Stehlik
Theodor-Heuss-Str. 32
63457 Hanau

Tel.: +49 (6181) 956375
alexander.stehlik at googlemail.com


More information about the TYPO3-team-core mailing list