0
0
Fork 0

Fix contrast between background and form elements on some pages (#31266)

This commit is contained in:
Claire 2024-08-02 15:55:31 +02:00 committed by GitHub
parent cc453f2221
commit 2ec1181ee5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1 additions and 37 deletions

View file

@ -3,7 +3,6 @@
class Auth::PasswordsController < Devise::PasswordsController
skip_before_action :check_self_destruct!
before_action :redirect_invalid_reset_token, only: :edit, unless: :reset_password_token_is_valid?
before_action :set_body_classes
layout 'auth'
@ -24,10 +23,6 @@ class Auth::PasswordsController < Devise::PasswordsController
redirect_to new_password_path(resource_name)
end
def set_body_classes
@body_classes = 'lighter'
end
def reset_password_token_is_valid?
resource_class.with_reset_password_token(params[:reset_password_token]).present?
end