publicshareauth.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. /** @var $_ array */
  3. /** @var $l \OCP\IL10N */
  4. style('core', 'guest');
  5. style('core', 'publicshareauth');
  6. script('core', 'publicshareauth');
  7. ?>
  8. <form method="post">
  9. <fieldset class="warning">
  10. <?php if (!isset($_['wrongpw'])): ?>
  11. <div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
  12. <?php endif; ?>
  13. <?php if (isset($_['wrongpw'])): ?>
  14. <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
  15. <?php endif; ?>
  16. <p>
  17. <label for="password" class="infield"><?php p($l->t('Password')); ?></label>
  18. <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
  19. <input type="password" name="password" id="password"
  20. placeholder="<?php p($l->t('Password')); ?>" value=""
  21. autocomplete="new-password" autocapitalize="off" autocorrect="off"
  22. autofocus />
  23. <input type="hidden" name="sharingToken" value="<?php p($_['share']->getToken()) ?>" id="sharingToken">
  24. <input type="submit" id="password-submit"
  25. class="svg icon-confirm input-button-inline" value="" disabled="disabled" />
  26. </p>
  27. </fieldset>
  28. </form>