[Typo3-dev] Login Box - Cookies
Ursula Klinger
klinger at punkt.de
Mon Jul 26 11:59:33 CEST 2004
Hi,
I want to use the login box and I want to force the user to enable cookies and
not to set ftu=1. I don't want to use the new login box. For the moment I found
the following solution for this problem:
1. user defined condition in localconf.php
if (!function_exists(user_loginWithoutCookie)) {
function user_loginWithoutCookie($cmd) {
if (!$_COOKIE["fe_typo_user"] && $_POST["logintype"] == "login") {
return true;
}
return false;
}
}
2. Typoscript
styles.content.get1 < styles.content.get
styles.content.get1.select.pidInList = 94
[userFunc =user_loginWithoutCookie]
styles.content.get1 < styles.content.get
styles.content.get1.select.pidInList = 164
[end]
[globalVar = TSFE:id = 94]
page.10.marks.CONTENT < styles.content.get1
[else]
page.10.marks.CONTENT < styles.content.get
[end]
The page 94 has the text for a correct login with enabled cookies.
The page 164 hat the Text with the error text "please enable cookies ...".
Now I have two questions: is there a better solution for this problem?
How do I make an extension for this?
Has anybody a solution for these two questions
Thanks
Ursula
More information about the TYPO3-dev
mailing list