Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-11-10 13:50:06 +0400
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-11-10 13:50:06 +0400
commit726ebbcb30021a55aa11fef32bfc5dbd6376b7a2 (patch)
tree93e9d6e43a634dcb77d105611423bb7981bee58b /templates/public.php
parent0a35852e672cebc283535c1320e60e649e9082f8 (diff)
handle password protected links. Closes #97
Diffstat (limited to 'templates/public.php')
-rw-r--r--templates/public.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/public.php b/templates/public.php
index 8ca0d57d..f46e777a 100644
--- a/templates/public.php
+++ b/templates/public.php
@@ -2,6 +2,16 @@
<div id="notification" style="display: none;"></div>
</div>
<div id="documents-content">
+ <?php if (isset($_['hasPassword'])): ?>
+ <?php if (isset($_['wrongpw'])): ?>
+ <div class="push"></div>
+ <div class="warning"><?php p($l->t('Wrong password. Please retry.')) ?></div>
+ <?php endif; ?>
+ <form method="post">
+ <input type="text" name="password" placeholder="<?php p($l->t('Password')) ?>" />
+ <input type="submit" name="submit" value="<?php p($l->t('OK')) ?>" />
+ </form>
+ <?php endif; ?>
<?php if (isset($_['document'])): ?>
<form>
<input type="text" name="memberName" placeholder="<?php p($l->t('Please enter your nickname')) ?>" />