Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
def delete():
  uinfo=userlist(users)
  name=request.args.get('delname')
  deluser(uinfo,users,name)
  return redirect('/userinfo')
Esempio n. 6
0
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)
Esempio n. 7
0
def delete():
    uinfo = userlist(users)
    name = request.args.get('delname')
    deluser(uinfo, users, name)
    return redirect('/userinfo')
Esempio n. 8
0
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)