Backend-Login aus dem Frontend heraus
Verfasst: Fr 15. Apr 2005, 12:46
wie muß das Login-Formular aussehen, wenn man sich direkt von der Webseite in das CMS einloggen will. Ich habe es hiermit versucht (abgeleitet vom originalen script (mainloginform.php). Aber es klappt nicht. Ich werde nur auf die Login-Seite geleitet.
Contenido Version 4.4.4.
habe leider in der Forum-Suche dazu auch nichts gefunden.
Hat jemand einen Tipp?
[/code]
Code: Alles auswählen
<script type="text/javascript" src="scripts/md5.js"></script>
<script language="javascript">
<script type="text/javascript">
function doChallengeResponse() {
str = document.login.username.value + ":" +
MD5(document.login.password.value) + ":" +
document.login.challenge.value;
document.login.response.value = MD5(str);
document.login.password.value = "";
document.login.submit();
}
</script>
<form name="login" method="post" action="/devel/contenido/index.php?contenido=<?php print md5(time()); ?>">
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td colspan="2" class="">Band Login</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td align="right" class="text_medium">Login:</td>
<td align="left"><input type="text" class="text_medium" name="username" size="20" maxlength="32" value=""></td>
</tr>
<tr>
<td align="right" class="text_medium">Password:</td>
<td align="left"><input type="password" class="text_medium" name="password" size="20" maxlength="32">
<input type="hidden" name="vaction" value="login">
<input type="hidden" name="formtimestamp" value="<?php print time(); ?>">
<input type="hidden" name="belang" value="de_DE">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="image" title="Login" alt="Login" src="images/but_ok.gif">
</td>
</tr>
</table>
</form>
Contenido Version 4.4.4.
habe leider in der Forum-Suche dazu auch nichts gefunden.
Hat jemand einen Tipp?
[/code]