整理模块,部分功能只有 api

This commit is contained in:
virusdefender
2015-10-18 11:45:06 +08:00
parent ad73a36944
commit 9089ad15dd
10 changed files with 382 additions and 52 deletions

View 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 %}