vmodhash: Check mock modhash value for testing.

This commit is contained in:
Andre D
2012-10-01 08:45:20 -05:00
committed by Neil Williams
parent fc31f7e830
commit 4db917555e

View File

@@ -723,7 +723,10 @@ class VModhash(Validator):
self.fatal = fatal
def run(self, uh):
pass
if not c.user_is_loggedin or uh != c.user.name:
if self.fatal:
abort(403)
self.set_error('INVALID_MODHASH')
def param_docs(self):
return {