Beispiel #1
0
 def GET(self):
     """
     Clears the users password
     """
     user = validateUser()
     control.clearPassword(user)
     raise web.seeother("/logout/?msg=newpass")
Beispiel #2
0
 def POST(self):
     username = validateInstructor()
     stulist = control.getSessionStudents(username)
     wi = web.input()
     user = wi["user"]
     control.clearPassword(user)
     return render.clearPass(bootpre,stulist)