def zhuce(): uinfo = userlist(users) name = request.args.get('user') pwd1 = request.args.get('pwd1') pwd2 = request.args.get('pwd2') out = adduser(uinfo, users, name, pwd1, pwd2) return render_template('zhuce.html', loginfo=out)
def zhuce(): uinfo=userlist(users) name=request.args.get('user') pwd1=request.args.get('pwd1') pwd2=request.args.get('pwd2') out=adduser(uinfo,users,name,pwd1,pwd2) return render_template('zhuce.html',loginfo=out)
def login(): uinfo=userlist(users) user = request.args.get('username') passwd = request.args.get('password') error=userlogin(uinfo,user,passwd) if error == 0: return redirect('/userinfo') else: return render_template('index.html',loginfo=error)
def login(): uinfo = userlist(users) user = request.args.get('username') passwd = request.args.get('password') error = userlogin(uinfo, user, passwd) if error == 0: return redirect('/userinfo') else: return render_template('index.html', loginfo=error)
def delete(): uinfo=userlist(users) name=request.args.get('delname') deluser(uinfo,users,name) return redirect('/userinfo')
def info(): uinfo=userlist(users) name=request.args.get('username') if name in uinfo: return render_template('userlist.html',users={name:uinfo[name]}) return render_template('userlist.html',users=uinfo)
def delete(): uinfo = userlist(users) name = request.args.get('delname') deluser(uinfo, users, name) return redirect('/userinfo')
def info(): uinfo = userlist(users) name = request.args.get('username') if name in uinfo: return render_template('userlist.html', users={name: uinfo[name]}) return render_template('userlist.html', users=uinfo)