整理模块,部分功能只有 api
This commit is contained in:
24
template/src/oj/account/oauth.html
Normal file
24
template/src/oj/account/oauth.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "oj_base.html" %}
|
||||
{% block title %}
|
||||
授权登录
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<div class="container main">
|
||||
<div class="text-center">
|
||||
{% if request.user.is_authenticated %}
|
||||
<p>3秒钟后将跳转到<span id="link">{{ callback }}</span></p>
|
||||
<script>setTimeout(function(){
|
||||
window.location.href = "{{ callback }}?token={{ token }}"},
|
||||
3000);
|
||||
</script>
|
||||
{% else %}
|
||||
<script>window.location.href = "/login/";</script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block js_block %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -8,7 +8,7 @@
|
||||
<tbody>
|
||||
<tr height="39" style="background-color:#50a5e6;">
|
||||
<td style="padding-left:15px;font-family:'微软雅黑','黑体',arial;">
|
||||
Online Judge
|
||||
{{ website_name }} 密码找回邮件
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -32,7 +32,7 @@
|
||||
</tr>
|
||||
<tr height="30">
|
||||
<td style="padding-left:55px;padding-right:55px;font-family:'微软雅黑','黑体',arial;font-size:14px;">
|
||||
您刚刚在 青岛大学在线评测系统 使用了找回密码功能。
|
||||
您刚刚在 {{ website_name }} 使用了找回密码功能。
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="30">
|
||||
|
||||
Reference in New Issue
Block a user