From bbd4001e1d1c6c2751ace65c4f9c6a75f350b064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 11 Oct 2024 09:12:30 +0200 Subject: [PATCH] Fix registration spec using turbo --- app/controllers/account_controller.rb | 1 + app/views/account/_register.html.erb | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index d909312f0d8c..ae8a53fd4e0c 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -386,6 +386,7 @@ def password_authentication(username, password) # correct password if not user.active? account_inactive(user, flash_now: true) + render status: :unprocessable_entity elsif user.force_password_change return if redirect_if_password_change_not_allowed(user) diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erb index f76fc104dfa5..554f8be6fa02 100644 --- a/app/views/account/_register.html.erb +++ b/app/views/account/_register.html.erb @@ -27,7 +27,11 @@ See COPYRIGHT and LICENSE files for more details. ++#%>