original_docstring: Remove failed login attempts for username/IP.
docstring: Remove failed login attempts for username/IP.
docstring_tokens: Remove failed login attempts for username / IP .
code: def update_last_login_internal(self, remote_address, commit=True):
          """Remove failed login attempts for username/IP."""
          (FailedLoginAttempt.query.filter(FailedLoginAttempt.username.ilike(self.email),
                                           FailedLoginAttempt.remote_addr == remote_address)
                                   .delete(synchronize_session=False))
  
          """Set 'last_login_at' to current datetime."""
          self.last_login_at = datetime.utcnow()
          if commit:
              self.save(commit=True, preserve_modified=True)
code_tokens: def update_last_login_internal ( self , remote_address , commit = True ) : ( FailedLoginAttempt . query . filter ( FailedLoginAttempt . username . ilike ( self . email ) , FailedLoginAttempt . remote_addr == remote_address ) . delete ( synchronize_session = False ) ) """Set 'last_login_at' to current datetime.""" self . last_login_at = datetime . utcnow ( ) if commit : self . save ( commit = True , preserve_modified = True )
short_docstring: Remove failed login attempts for username/IP.
short_docstring_tokens: Remove failed login attempts for username / IP .
comment: """Remove failed login attempts for username/IP."""$SEP$"""Set 'last_login_at' to current datetime."""