[TYPO3-dev] felogin: redirectMode = login,getpost
Steffen Gebert
steffen at steffen-gebert.de
Thu Dec 25 17:05:46 CET 2008
Hi Steffen and rest of felogin interrested people out there ;)
I'm just trying to use felogin (4.3-trunk) with redirectMode = login,getpost
- If a user wants to access a protected page, he's redirected to login page by typolink function. After login he/she should be redirected to the page he/she tried to access (mode getpost, GET variable redirect_url).
- If a user wants to login by opening login page, he should be redirected to a specific Welcome-page (just if there's no redirect_url - mode login).
My problem is that this doesn't work and after browsing the code I think there's a little bug:
getpost always overwrites $redirect_url ($redirect_url = $this->redirectUrl;, line 371), even if it's empty and so kicks out my default redirect.
I suppose to change the line to assign $redirect_url only if $this->redirect_url is NOT empty.
I could just solve my problem by using redirectFirstMethod and changing redirectMode order. But nevertheless I find it quite inconvenient to use the empty variable's "value".
Is this the bug or is there a bug in my mind? :)
Merry christmas!
Steffen
More information about the TYPO3-dev
mailing list