return TRUE;
}
}
-elseif (!$User) {
- http_response_code(303);
+elseif (!$User->login) {
$target = urlencode($_SERVER['REQUEST_URI']);
- header("Location: /login?goto=$target");
- exit;
+ abort("/login?goto=$target", 303);
}
if ($_POST) {
Dit zal de huidige code vervangen.
</p>
<p>
-<?php if ($User and strlen($User->pass)) { ?>
+<?php if ($User->login and strlen($User->pass)) { ?>
<input type="password" name="oldpass" value="" placeholder="Huidig wachtwoord" />
<?php } ?>
<input type="password" name="newpass" value="" placeholder="Nieuw wachtwoord" />