How do I go about submitting a tool for review to be included into the
I wrote a first-class forms authentication plugin for CherryPy.
Here's how it works:
In your config, you'd add these lines:
tools.auth_forms.on = True
tools.auth_forms.login_url = "/path/to/my/login"
tools.auth_forms.session_key = "STARTREKISGREAT"
In your login page handler, you'd do something like this:
def login(self, username=None, password=None, returnUrl="/"):
if username is None or password is None:
return .... login screen template .render(returnUrl = returnUrl)
error_msg = AuthenticationDB.check_credentials(username, password)
return .... login screen template .render(returnUrl = returnUrl,
errorMsg = error_msg, username = username)
def logout(self, returnUrl="/"):
That's it! I can send the plugin to whomever.