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. ++#%>