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")
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"})