36 lines
2.0 KiB
HTML
36 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}登录 · {{ PLATFORM_NAME }}{% endblock %}
|
|
{% block content %}
|
|
<section class="auth-layout">
|
|
<div class="auth-copy">
|
|
<span class="eyebrow">安全连接,从这里开始</span>
|
|
<h1>连接你的工作网络,<br>清晰、稳定、可控。</h1>
|
|
<p>统一查看服务状态、使用流量、有效期和订阅地址。公司员工与外部联系人使用同一入口。</p>
|
|
<div class="feature-line"><span>01</span> 每人独立订阅与流量统计</div>
|
|
<div class="feature-line"><span>02</span> 全局线路策略与个人专用线路</div>
|
|
<div class="feature-line"><span>03</span> 到期、超额或停权立即生效</div>
|
|
</div>
|
|
<div class="auth-card">
|
|
<h2>账号登录</h2>
|
|
<p class="muted">使用纵横家账号,安全访问你的专属服务</p>
|
|
<form method="post" class="form-grid">
|
|
{% csrf_token %}
|
|
{% if form.non_field_errors %}<div class="form-error">{{ form.non_field_errors }}</div>{% endif %}
|
|
<label>用户名{{ form.username }}</label>
|
|
<label>密码{{ form.password }}</label>
|
|
{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %}
|
|
<button class="button primary wide" type="submit">登录</button>
|
|
</form>
|
|
{% if WECOM_AVAILABLE %}
|
|
<form method="post" action="{% url 'wecom-start' %}" class="wecom-login">
|
|
{% csrf_token %}<input type="hidden" name="purpose" value="login">
|
|
{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %}
|
|
<button class="button secondary wide" type="submit">企业微信扫码登录</button>
|
|
</form>
|
|
<p class="muted">首次使用请先密码登录,在“个人绑定”中关联企业微信。</p>
|
|
{% endif %}
|
|
<p class="auth-foot">还没有账号?<a href="{% url 'register' %}">提交注册申请</a></p>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|