1
0

authenticate.php 1.0 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. /** @var $_ array */
  3. /** @var $l \OCP\IL10N */
  4. style('core', 'guest');
  5. style('files_sharing', 'authenticate');
  6. script('files_sharing', 'authenticate');
  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="submit" id="password-submit"
  24. class="svg icon-confirm input-button-inline" value="" disabled="disabled" />
  25. </p>
  26. </fieldset>
  27. </form>