You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
478 B
24 lines
478 B
8 months ago
|
'''
|
||
|
用户业务
|
||
|
'''
|
||
|
from flask import Blueprint, request, render_template, jsonify, redirect
|
||
|
import adminProcess
|
||
|
|
||
|
admin = Blueprint("admin",__name__)
|
||
|
|
||
|
'''
|
||
|
后台登录处理
|
||
|
'''
|
||
|
|
||
|
@admin.route("/admin/login",methods=['POST'])
|
||
|
def adminlogin():
|
||
|
username = request.form['name']
|
||
|
userpwd = request.form['password']
|
||
|
print(username,userpwd)
|
||
|
if adminProcess.login(username,userpwd):
|
||
|
return redirect("/admin/index")
|
||
|
else:
|
||
|
return redirect('/admin')
|
||
|
|
||
|
|