diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 17:38:27 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 17:38:27 +0200 |
commit | 4af220d09e70b63195da2cb90f7556461cf29157 (patch) | |
tree | 1b3f11930dd0408743676cb3e1444840a62554fe /apps/files_sharing/public.php | |
parent | b48dffa9a302881e8d1effe9d03bc97e96adc23b (diff) | |
download | nextcloud-server-4af220d09e70b63195da2cb90f7556461cf29157.tar.gz nextcloud-server-4af220d09e70b63195da2cb90f7556461cf29157.zip |
Fix password screen for public shares
* Works in IE8, 9, 10, Firefox 24 and Chromium 30
* Credits to Julian Müller @Julian1998
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index eff38dcc0fd..8bdbc8524e6 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -77,6 +77,7 @@ if (isset($path)) { $hasher = new PasswordHash(8, $forcePortable); if (!($hasher->CheckPassword($password.OC_Config::getValue('passwordsalt', ''), $linkItem['share_with']))) { + OCP\Util::addStyle('files_sharing', 'authenticate'); $tmpl = new OCP\Template('files_sharing', 'authenticate', 'guest'); $tmpl->assign('URL', $url); $tmpl->assign('wrongpw', true); @@ -101,6 +102,7 @@ if (isset($path)) { || \OC::$session->get('public_link_authenticated') !== $linkItem['id'] ) { // Prompt for password + OCP\Util::addStyle('files_sharing', 'authenticate'); $tmpl = new OCP\Template('files_sharing', 'authenticate', 'guest'); $tmpl->assign('URL', $url); $tmpl->printPage(); |