feat: Use invoice emitter details from env var

This commit is contained in:
kbe
2025-09-10 10:21:32 +02:00
parent a69faf0582
commit d1fb766fef
7 changed files with 42 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
class OnboardingController < ApplicationController
before_action :authenticate_user!
before_action :redirect_if_onboarding_complete, except: [:complete]
before_action :redirect_if_onboarding_complete, except: [ :complete ]
def index
# Display the onboarding form
@@ -10,7 +10,7 @@ class OnboardingController < ApplicationController
if onboarding_params_valid?
current_user.update!(onboarding_params)
current_user.complete_onboarding!
flash[:notice] = "Bienvenue sur #{Rails.application.config.app_name} ! Votre profil a été configuré avec succès."
redirect_to dashboard_path
else
@@ -26,7 +26,7 @@ class OnboardingController < ApplicationController
end
def onboarding_params_valid?
onboarding_params[:first_name].present? &&
onboarding_params[:first_name].present? &&
onboarding_params[:last_name].present?
end