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.
remotes/origin/stable6
Kondou 12 years ago
commit 63c83ff50b
  1. 2
      apps/files_sharing/public.php
  2. 3
      apps/files_sharing/templates/authenticate.php

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

Loading…
Cancel
Save