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'),