Files
thetool/Layout/default/UserPasswordReset/reset-password.php
Daniel Spitzer f002f7b0f7 Login Passwort reset
* Passwort Reset Funktion implementiert
2025-08-05 19:14:51 +02:00

57 lines
2.5 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?= MFAPPNAME_FULL ?> | Passwort zurücksetzen</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="assets/images/favicon.ico">
<link rel="stylesheet" href="<?= self::getResourcePath() ?>fontawesome/css/all.min.css">
<link rel="stylesheet" href="<?= self::getResourcePath() ?>css/adminlte.css">
<link rel="stylesheet" href="<?= self::getResourcePath() ?>css/fonts.css?<?= date('U') ?>">
<link rel="stylesheet" href="<?= self::getResourcePath() ?>css/main.css?<?= date('U') ?>">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="<?= self::getUrl("/") ?>"><img
src="<?= self::getResourcePath() ?>assets/images/<?= MFAPPNAME_SLUG ?>-logo.png"/></a>
</div>
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">Neues Passwort festlegen</p>
<?php if ($error): ?>
<div class="alert alert-danger"><?= $error ?></div>
<?php endif; ?>
<form action="<?= self::getUrl("UserPasswordReset", "updatePassword") ?>" method="post">
<input type="hidden" name="token" value="<?= $token ?>" />
<div class="input-group mb-3">
<input type="password" name="Password" class="form-control" placeholder="Neues Passwort" required>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" name="Password_confirm" class="form-control" placeholder="Passwort bestätigen" required>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">Passwort speichern</button>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>