-
Passwort anfordern
Hi,
in der neuen Version (VMS 1.2.4) ist ja das einloggen mit Nickname vorgesehen.
Beim Anmelden und anfordern vom vergessenen Passwort wird allerdings nur die Klamm-ID mit angegeben.
Ich habe versucht den Nickname auch noch einzufügen, habe es aber bisher nicht hinbekommen. Auch die Suche hier im Forum hat mir nicht weitergeholfen.
Gibt es da was oder hat jemand einen andern Tipp da für mich ?
-
-
oder du läßt dir den nicknamen auch anzeigen im anforderungsmail :
content/intern/daten.php
PHP-Code:
<?
if (isset($_POST['anf_daten']) && isset($_POST['anf_email'])) {
$_POST['anf_email'] = addslashes ($_POST['anf_email']);
$daten_anfordern = mysql_fetch_array(db_query("SELECT `uid`,`emailadresse` FROM ".$db_prefix."_emaildaten WHERE emailadresse = '".$_POST['anf_email']."' LIMIT 1"));
if ($daten_anfordern['emailadresse']) {
$neues_passwort = create_code(8);
db_query ("UPDATE ".$db_prefix."_kontodaten SET passwort='".md5($neues_passwort)."' WHERE uid=".$daten_anfordern['uid']."");
$nick = mysql_fetch_array(db_query("SELECT nickname FROM ".$db_prefix."_userdaten WHERE uid=".$daten_anfordern['uid'].""));
$email_message = 'Hallo ' .$nick['nickname'].',
Du hast soeben die Zugangsdaten für '.$seitenname.' angefordert.
----------------------------------------------------------
Nickname: ' .$nick['nickname'].'
Kontonummer: '.$daten_anfordern['uid'].'
Passwort: '.$neues_passwort.'
----------------------------------------------------------
Jetzt kannst Du dich wieder auf '.$domain.'
einloggen und das Passwort wieder ändern!
Mit freundlichen Grüßen
Das '.$seitenname.' Team
';
usermail ($daten_anfordern['emailadresse'], "$seitenname Passwort", $email_message, '"'.$seitenname.'" <'.$betreibermail.'>');
$error_msg = '<b>Passwort wurde zugesandt!</b><br>';
} else {
$error_msg = '<b>Emailadresse nicht bekannt!</b><br>';
}
}
?>
<?head("Zugangsdaten anfordern");?>
<p align="center"><font color="red"> <?=$error_msg;?></font></p>
Wenn Du deine Zugangsdaten mal verloren haben solltest oder diese einfach nur mal verlegt hast,
kannst Du hier diese Daten wieder in Erfahrung bringen. Wir senden an Deine bei uns gespeicherte
Emailadresse sofort die Daten zu.<br>
<form action="" method="post">
<div align="center">
<b>Angemeldetet Email-Adresse: </b><input type="Text" name="anf_email"> <input type="Submit" name="anf_daten" value="Anfordern!" style="width:120px;">
</div>
</form>
<?foot();?>
-
das mit dem Klamm-ID und Nickname einloggen ist auch eine gute Idee.
Mit dem $nick hatte ich ne ganz falsche Überlegung wie ich das reinbekommt. Naja bin halt noch nicht ganz sooo weit mit PHP.
Auf alle Fälle vielen Dank !