summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-02 03:16:42 +0200
committerOwen Winkler <epithet@gmail.com>2013-08-16 10:56:32 -0400
commit2db617bf171f6714889ef116e66d5b0e95a979b3 (patch)
tree64d0f1d71a3832a2c16c9a1f45d824d7ffd0ebb6 /apps
parent333900d5aaaf2b257252e243a22b78a69d9f568b (diff)
downloadnextcloud-server-2db617bf171f6714889ef116e66d5b0e95a979b3.tar.gz
nextcloud-server-2db617bf171f6714889ef116e66d5b0e95a979b3.zip
Add a "Wrong password." message, if the password
for the public share was wrong. Fix #2725
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/public.php2
-rw-r--r--apps/files_sharing/templates/authenticate.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index fd58410640d..36520175ccf 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -58,7 +58,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 {
diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php
index 7a67b6e5503..9334861b1ce 100644
--- a/apps/files_sharing/templates/authenticate.php
+++ b/apps/files_sharing/templates/authenticate.php
@@ -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 />