]> 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)
committerkondou <kondou@ts.unde.re>
Tue, 2 Jul 2013 01:16:42 +0000 (03:16 +0200)
for the public share was wrong.

Fix #2725

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

index ef86013b3e728cacf59ff554f886c648ea98d8b1..fb18bc2624894e53b827fc107595c03964fcaeea 100644 (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 {
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 />