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()
-
clean
()¶ Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
-
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.
-