1
0
Fork 0
forked from gitea/nas

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

@ -5,7 +5,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
layout 'auth'
before_action :set_body_classes
before_action :set_confirmation_user!, only: [:show, :confirm_captcha]
before_action :redirect_confirmed_user, if: :signed_in_confirmed_user?
@ -73,10 +72,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
user_signed_in? && current_user.confirmed? && current_user.unconfirmed_email.blank?
end
def set_body_classes
@body_classes = 'lighter'
end
def after_resending_confirmation_instructions_path_for(_resource_name)
if user_signed_in?
if current_user.confirmed? && current_user.approved?