parameters: (self)
return_statement: return self.cleaned_data
docstring: Checks for the identification and password.
  
          If the combination can't be found will raise an invalid sign in error.
docstring_summary: Checks for the identification and password.
docstring_tokens: Checks for the identification and password .
function: 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
function_tokens: 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