Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedm10 committed Oct 9, 2024
1 parent 321aa3e commit f28615f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit f28615f

Please sign in to comment.