From f28615f5fc217d1db025a1907136ebf158dd90c7 Mon Sep 17 00:00:00 2001 From: ahmedm10 Date: Thu, 10 Oct 2024 02:07:13 +0300 Subject: [PATCH] fix --- .../casino/processor_concern/ticket_granting_tickets.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/processors/casino/processor_concern/ticket_granting_tickets.rb b/app/processors/casino/processor_concern/ticket_granting_tickets.rb index 0ea53589..4792e8c1 100644 --- a/app/processors/casino/processor_concern/ticket_granting_tickets.rb +++ b/app/processors/casino/processor_concern/ticket_granting_tickets.rb @@ -28,13 +28,13 @@ def find_valid_ticket_granting_ticket(tgt, user_agent, ignore_two_factor = false end end - def acquire_ticket_granting_ticket(authentication_result:, user_agent: nil, long_term: nil, processor:) + def acquire_ticket_granting_ticket(authentication_result:, user_agent: nil, long_term: nil, processor: nil) user_data = authentication_result[:user_data] user = load_or_initialize_user(authentication_result[:authenticator], user_data[:username], user_data[:extra_attributes]) cleanup_expired_ticket_granting_tickets(user) user.cleanup_two_factor_authenticator - generate_two_factor_authenticator(user, processor) + generate_two_factor_authenticator(user, processor) if processor user.ticket_granting_tickets.create!({ ticket: random_ticket_string('TGC'),