Add a "Wrong password." message, if the password
for the public share was wrong. Fix #2725
This commit is contained in:
parent
fbdf46b76e
commit
2c4a9e0776
|
@ -79,7 +79,7 @@ if (isset($path)) {
|
|||
$linkItem['share_with']))) {
|
||||
$tmpl = new OCP\Template('files_sharing', 'authenticate', 'guest');
|
||||
$tmpl->assign('URL', $url);
|
||||
$tmpl->assign('error', true);
|
||||
$tmpl->assign('wrongpw', true);
|
||||
$tmpl->printPage();
|
||||
exit();
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<form action="<?php p($_['URL']); ?>" method="post">
|
||||
<fieldset>
|
||||
<?php if ($_['wrongpw']): ?>
|
||||
<div class="warning"><?php p($l->t('Wrong password.')); ?></div>
|
||||
<?php endif; ?>
|
||||
<p class="infield">
|
||||
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
||||
<input type="password" name="password" id="password" placeholder="" value="" autofocus />
|
||||
|
|
Loading…
Reference in New Issue