SPB Git

spb/drive Public

SPB Drive — self-hosted personal cloud drive (files, previews, sharing) on the MacLustr cluster.

JavaScript 82.7% CSS 10.6% Nunjucks 3.6% Shell 1.8% SQL 1.3%
1.4 KB · 30 lines jinja
Raw Blame History
1{#2  ─────────────────────────────────────────────3   SPB Drive — Personal Cloud Drive4  ─────────────────────────────────────────────5   Author  : Simon-Pierre Boucher6   Contact : contact@spboucher.ai7   File    : src/web/views/share-gate.njk8   Purpose : Minimal password gate for protected share links9   License : MIT © Simon-Pierre Boucher10  ─────────────────────────────────────────────11#}12{% extends "base.njk" %}13{% block title %}Protected link · SPB Drive{% endblock %}14{% block body %}15<div class="login-wrap">16  <form class="login-card" method="post" action="/s/{{ token }}/unlock">17    <div class="login-logo">SPB</div>18    <h1>Protected link</h1>19    <p class="sub">This shared item requires a password</p>20    {% if error %}<div class="login-error" role="alert">{{ error }}</div>{% endif %}21    <input type="hidden" name="_csrf" value="{{ csrf }}">22    <label class="field">23      <span>Password</span>24      <input type="password" name="password" autofocus required placeholder="••••••••">25    </label>26    <button class="btn primary" type="submit">Open</button>27  </form>28</div>29{% endblock %}30