]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a "Wrong password." message, if the password
authorkondou <kondou@ts.unde.re>
Tue, 2 Jul 2013 01:16:42 +0000 (03:16 +0200)
committerOwen Winkler <epithet@gmail.com>
Fri, 16 Aug 2013 14:56:32 +0000 (10:56 -0400)
for the public share was wrong.

Fix #2725

apps/files_sharing/public.php
apps/files_sharing/templates/authenticate.php

index fd58410640dc8a77f18f6abee068772f80d266d3..36520175ccf42e3a7a0dc1a9526be45d09ec4b69 100644 (file)
@@ -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 {
index 7a67b6e550343e0762bf8a5539883391e01d2c3b..9334861b1cedeffc93896d192742b86f39b80347 100644 (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 />