From eb5503a5ec35cfa25ba94d09aefdcb24cd6f5109 Mon Sep 17 00:00:00 2001 From: Oksana Melnikova Date: Fri, 7 Feb 2025 20:32:07 +0400 Subject: [PATCH] [hotfix] fixed password reset --- app/controllers/passwords_controller.rb | 2 +- app/javascript/components/auth/ResetPass.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index 9f552f1d..9826fa52 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -9,7 +9,7 @@ class PasswordsController < ApplicationController before_action :validate_email, only: :forgot before_action :validate_token, only: :reset - before_action :validate_password, only: %i(strength reset) + before_action :validate_password, only: :reset ### # @description: Manages to generate a token and send it to the user via email with diff --git a/app/javascript/components/auth/ResetPass.jsx b/app/javascript/components/auth/ResetPass.jsx index f3bf22c2..783c789a 100644 --- a/app/javascript/components/auth/ResetPass.jsx +++ b/app/javascript/components/auth/ResetPass.jsx @@ -43,7 +43,7 @@ const ResetPass = (props) => { setWorking(true); - resetPassword({ password: password }, token).then((response) => { + resetPassword(password, token).then((response) => { /// Manage the errors if (response.error) { setErrors(response.error + '\n. We were not able to reset your password.');