lad1337 on rewrite_tornado
new readme (compare)
class PluginOne(System):
def xdm_password_hash(pw):
# do stuff
return hash
def xdm_validate_user_login(some, stuff):
# do some validation
return bool(result)
# and somehwere in XDM
for system_p in common.PM.S:
hashed_pw = system_p.xdm_password_hash(pw)
for system_p in common.PM.S:
if not system_p.xdm_validate_user_login(user, info):
return False
else:
do_login()
we could add these all over the place