From 660f7ab8f3da2a5a67b99662080a8e7c03ed6993 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 29 Mar 2024 14:50:18 +0200 Subject: [PATCH] password reset neutral on-prem --- app/controllers/passwords_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index da67abc6..7ca14716 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -5,6 +5,12 @@ class PasswordsController < Devise::PasswordsController attribute :user end + def create + super do |resource| + resource.errors.clear unless Docuseal.multitenant? + end + end + def update super do |resource| Current.user = resource