Forward error messages of the password policy directly

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-11-17 20:18:20 +01:00
parent 303be22454
commit 5036992a19
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 4 deletions

View File

@ -6,11 +6,9 @@ script('registration', 'form');
?><form action="" method="post"> ?><form action="" method="post">
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" /> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
<fieldset> <fieldset>
<?php if (!empty($_['errormsgs'])) {?> <?php if (!empty($_['message'])) {?>
<ul class="error"> <ul class="error">
<?php foreach ($_['errormsgs'] as $errormsg) { ?> <li><?php p($_['message']); ?></li>
<li><?php p($errormsg); ?></li>
<?php } ?>
</ul> </ul>
<?php } else { ?> <?php } else { ?>
<ul class="msg"> <ul class="msg">