Passwort vergessen Funktion
This commit is contained in:
@@ -30,15 +30,19 @@ if (!file_exists($file)) {
|
||||
$user["nachname"],
|
||||
$data["password"]
|
||||
);
|
||||
|
||||
unlink($file);
|
||||
|
||||
$title = "Passwort geändert";
|
||||
$message = "Ihr Passwort wurde erfolgreich geändert. Sie können sich jetzt anmelden.";
|
||||
$link = '<a class="button confirm-button" href="index.php?pfad=login">Zum Login</a>';
|
||||
$isSuccess = true;
|
||||
} else {
|
||||
unlink($file);
|
||||
|
||||
$message = "Der Benutzer konnte nicht gefunden werden.";
|
||||
}
|
||||
|
||||
unlink($file);
|
||||
|
||||
$title = "Passwort geändert";
|
||||
$message = "Ihr Passwort wurde erfolgreich geändert. Sie können sich jetzt anmelden.";
|
||||
$link = '<a class="button confirm-button" href="index.php?pfad=login">Zum Login</a>';
|
||||
$isSuccess = true;
|
||||
|
||||
} catch (Exception $e) {
|
||||
$message = "Das Passwort konnte nicht geändert werden.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user