Ctrl K
ComunidadGuías…

webapp/templates/login.html

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
{% extends "base.html" %}
{% block title %}{{ _("Login · Local SQL Agent") }}{% endblock %}
{% block content %}
<div class="auth-wrap">
  <div class="card auth-card">
    <h1>{{ _("Welcome") }}</h1>
    <p class="muted">{{ _("Sign in to ask your database a question in Persian or English.") }}</p>
    <form method="post" action="{{ url_for('login') }}">
      <!-- Enforced like every other POST form (see webapp/app.py's
           _CSRF_EXEMPT_ENDPOINTS comment): rendering this field mints a
           token into a pre-authentication session and sends its cookie on
           this page's own response, so the token is already bound to this
           browser's session by the time the form below can be submitted. -->
      <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
      <label for="username">{{ _("Username") }}</label>
      <input id="username" name="username" type="text" autocomplete="username" required autofocus>

      <label for="password">{{ _("Password") }}</label>
      <input id="password" name="password" type="password" autocomplete="current-password" required>

      <button class="btn btn-primary btn-block" type="submit">{{ _("Sign in") }}</button>
    </form>
  </div>
</div>
{% endblock %}