[TYPO3-core] RFC #12779: Save the previous selected type of backend login in a cookie
sebastian.gebhard at gmail.com
Mon Dec 28 12:50:59 CET 2009
Am 28.12.2009 11:10, schrieb Benjamin Mack:
> Second of all: Does anybody know why there is no interface-selector when
> authenticating with openID? (just a bit offtopic, but i'm curious).
I don't know exactly why, but after OpenID Login the user is always redirected to the Backend, no
matter what Interface was selected. You can try this, when you select FE as interface and provide
your OpenID as username (leave password blank).
As long as this does not work (/is not supported) we should keep the Interface selector hidden when
loging in with OpenID.
I'm not to deep in the code of the authentification stuff, so no idea what exactly goes wrong there.
> Anyway, I like the functionality and this is what I found:
> * If you have this in localconf.php:
> $TYPO3_CONF_VARS['BE']['interfaces'] = 'frontend,backend';
> then your patch does not work, as the value "backend" is not checked
> for. I also noticed that the patch is limited when having another
> interface like "iPhone app" as interface. So this is fixed by having a
> generic interface selection.
> * I upped the cookie expiration to 1 year
I'm ok with that
> * I changed the interface selector observer to also check on "blur",
> because then it also saves the original state if somebody just checks
> the dropdown and does not select an alternative option.
I do not get the idea behind this yet. If nothing is changed then the cookie already holds the right
value or is empty for default selection.
Since this is very minor, I still give my +1 for it. You can decide wether to include "blur" or not.
> Anyway, good stuff. Sebastian, if you agree with these changes, I would
> commit this patch (v5) to trunk and after checking with Olly, maybe to 4.3.
Thanks for your efforts!
More information about the TYPO3-team-core