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.";
|
||||
}
|
||||
|
||||
@@ -42,6 +42,12 @@ $success = $success ?? null;
|
||||
Passwort zurücksetzen
|
||||
</button>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="index.php?pfad=login">
|
||||
Zurück zum Login
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user