From d29e25350d2d5d2d41ffa632d6eec16b5f183a61 Mon Sep 17 00:00:00 2001 From: Samuel Date: Mon, 2 Jun 2025 15:29:20 +0100 Subject: [PATCH] send confirmation if user is unconfirmed on password reset --- app/models/user.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index b504db9bc..23dbc196b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -358,6 +358,14 @@ class User < ApplicationRecord end end + def send_reset_password_instructions + if confirmed? + super + else + send_confirmation_instructions + end + end + protected # Checks whether a password is needed or not. For validations only.