newauth.forms

class newauth.forms.BaseAuthForm(*args, **kwargs)

A base authentication form. Authentication forms can subclass this form and implement the get_credentials() method which will return a dictionary of credentials from self.cleaned_data that can be used with authenticate()

get_credentials()

Gets credentials as a dict object from self.cleaned_data

get_user()

Gets the cached user object for the user that logged in using this form.

class newauth.forms.BasicAuthForm(*args, **kwargs)

A basic authentication form that will authenticate a user using a username and password. Useful for subclasses of BasicUser.