Merge pull request #3914 from owncloud/wrong-pw_for_share-with-pw

Add a "Wrong password." message, if the password for the public share was wrong.
This commit is contained in:
Kondou 2013-07-04 03:12:51 -07:00
commit 63c83ff50b
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('The password is wrong. Try again.')); ?></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 />