code: def check_user_password(self, user, password=None, form=None):
          
          pwcol = self.options['password_column']
          if password is None:
              if not form and "form" in current_context.data and request.method == "POST":
                  form = current_context.data.form
              if form:
                  password = form[pwcol].data
              else:
                  raise OptionMissingError("Missing 'password' option or a form")
          current_pwd = getattr(user, pwcol)
          if not current_pwd or not self.bcrypt.check_password_hash(current_pwd, password):
              current_context.exit(trigger_action_group="password_mismatch")
docs: Checks if the password matches the one of the user. If no password is
          provided, the current form will be used