Merge pull request #258 from nextcloud/bugfix/42/forward-error-messages-from-password-policy

Forward error messages of the password policy directly
This commit is contained in:
Nienzu 2020-11-20 17:06:07 +08:00 committed by GitHub
commit 3e2ae04f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

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