[TYPO3-german] Login-Formular im Template
Lutz Rothe
lutz at rothe.it
Mon Aug 24 15:22:11 CEST 2009
Hallo Zusammen,
ich habe ein Login-Formular nach der Anleitung von Philipp Hauer
http://www.philipphauer.de/tut/typo3-login-template/
in meinem Template erstellt.
Leider kann ich mich nicht darüber einloggen. Mir wird immer gesagt
(falscher Username oder Passwort).
Wenn ich mich aber über ein normales Anmeldeformular einlogge geht es
und auf der Seite wird dann auch der richtige Name angegeben und auch
aus Logout-Button.
Ich bin jetzt ein wenig ratlos und frage mich, ob es an der MD5
Verschlüsselung liegt und ich etwas im TS falsch habe.
Hat jemand eine Idee?
LG und vielen Dank im voraus
Lutz
Marker:
<div class="login">
<!-- ###LOGIN### start -->
Hier erscheint das Login-Formular im Template
<!-- ###LOGIN### stop -->
</div>
Hier das TS (name="pid" value="12" FEUSER-Ordner):
[usergroup=*]
page.10.subparts.LOGIN = TEXT
page.10.subparts.LOGIN.value(
<form action="index.php?id=1" method="post">
Angemeldet als: <span><!--###USERNAME###--></span>
<br />
<input class="submit logout" type="submit" name="submit"
value="Abmelden" />
<input type="hidden" name="logintype" value="logout"/>
<input type="hidden" name="pid" value="12" />
</form>
)
[else]
page.10.subparts.LOGIN = TEXT
page.10.subparts.LOGIN.value (
<form action="index.php?id=4" method="post"
onsubmit="superchallenge_pass(this); return true;">
<input class="input" type="text" id="user" name="user"
value="Benutzername" onfocus="if (this.value == 'Benutzername')
this.value = '';"/>
<input class="input" type="password" id="pass" name="pass"
value="password" onfocus="if (this.value == 'password') this.value = '';"/>
<input class="submit" type="submit" name="submit" value="Anmelden"/>
<input type="hidden" name="logintype" value="login"/>
<input type="hidden" name="pid" value="12" />
<input type="hidden" name="redirect_url" value="index.php?id=4" />
</form>
)
[GLOBAL]
More information about the TYPO3-german
mailing list