(self)
return self.cleaned_data
Checks for the identification and password.

        If the combination can't be found will raise an invalid sign in error.
Checks for the identification and password.
Checks for the identification and password .
def clean(self):
        """
        Checks for the identification and password.

        If the combination can't be found will raise an invalid sign in error.

        """
        identification = self.cleaned_data.get('identification')
        password = self.cleaned_data.get('password')

        if identification and password:
            user = authenticate(identification=identification, password=password)
            if user is None:
                raise forms.ValidationError(_(u"Please enter a correct username or email and password. Note that both fields are case-sensitive."))
        return self.cleaned_data
def clean ( self ) : identification = self . cleaned_data . get ( 'identification' ) password = self . cleaned_data . get ( 'password' ) if identification and password : user = authenticate ( identification = identification , password = password ) if user is None : raise forms . ValidationError ( _ ( u"Please enter a correct username or email and password. Note that both fields are case-sensitive." ) ) return self . cleaned_data