kubeload/templates/auth/register.jinja
2026-02-12 07:24:02 -08:00

25 lines
794 B
Django/Jinja

{% extends "auth/base.jinja" %}
{% block title %}
Home - My Site
{% endblock title %}
{% block head %}
{{ super() }}
<link rel="stylesheet"
href="{{ url_for('static', filename='css/index.css') }}" />
{% endblock head %}
{% block content %}
{% include "partials/_register.jinja" %}
<script src="{{ url_for('node_modules', filename='preline/dist/index.js') }}"></script>
<script>
// Wait for the library to initialize instances
window.addEventListener("load", () => {
if (!window.$hsStrongPasswordCollection) return;
window.$hsStrongPasswordCollection.forEach(item => {
item.element.minLength = 20; // override minLength
// Re-run strength check to update UI
item.element.setStrength(item.element.target.value);
});
});
</script>
{% endblock content %}