diff options
author | Kondou <kondou@ts.unde.re> | 2013-07-04 03:12:51 -0700 |
---|---|---|
committer | Kondou <kondou@ts.unde.re> | 2013-07-04 03:12:51 -0700 |
commit | 63c83ff50bc8329d4fea4c09d724d7d944ddcb1d (patch) | |
tree | 064258df30b4aba6d639d9c641b99cd40b44c1d8 /apps | |
parent | 5f2378be5b7b5d11aa1e8e2ac91d51abc79f6bb7 (diff) | |
parent | 65bcedfbbee891a4a5253ff328f7a2b5e9d07e78 (diff) | |
download | nextcloud-server-63c83ff50bc8329d4fea4c09d724d7d944ddcb1d.tar.gz nextcloud-server-63c83ff50bc8329d4fea4c09d724d7d944ddcb1d.zip |
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.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/public.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/templates/authenticate.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index ef86013b3e7..fb18bc26248 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.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 { diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php index 7a67b6e5503..fa03f419130 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('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 /> |