code: def reset_password(self, user, password):
          
          user.password = password
          self.user_manager.save(user)
          if app.config.SECURITY_SEND_PASSWORD_RESET_NOTICE_EMAIL:
              self.send_mail(
                  _('flask_unchained.bundles.security:email_subject.password_reset_notice'),
                  to=user.email,
                  template='security/email/password_reset_notice.html',
                  user=user)
          password_reset.send(app._get_current_object(), user=user)
docs: Service method to reset a user's password. The same as :meth:`change_password`
          except we this method sends a different notification email.
  
          Sends signal `password_reset`.
  
          :param user:
          :param password:
          :return: