示例#1
0
文件: client.py 项目: chaipokoi/Calk
def auth_page():
    _user = request.forms.user
    password = request.forms.password
    if session.checkCredentials(_user, password):
        session.createSession(_user, password, response)
        return template("achieved", {"message": "Vous êtes maintenant connecté.", "link": "/index"})
    redirect("/nope")
示例#2
0
文件: admin.py 项目: chaipokoi/Calk
def auth():
	user = request.forms.user
	password = request.forms.password
	if session.checkCredentials(user, password):
		session.createSession(user, password, response)
		return template("achieved", {"message":"Vous etes maintenant connectes au service d'administration.", "link": "/index"})
	else:
		return template("achieved", {"message": "Impossible de vous authentifier, veuillez reessayer.", "link": "/login"})