Add a "Wrong password." message, if the password

for the public share was wrong.

Fix #2725
This commit is contained in:
kondou 2013-07-02 03:16:42 +02:00
parent fbdf46b76e
commit 2c4a9e0776
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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 />