Welcome to mirror list, hosted at ThFree Co, Russian Federation.

device_registration_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbdcab76bf5268a5cb81b5a915f847af2699297e (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module DeviceRegistrationHelper
  def device_registration_data(current_password_required:, target_path:, webauthn_error:)
    {
      initial_error: webauthn_error && webauthn_error[:message],
      target_path: target_path,
      password_required: current_password_required.to_s
    }
  end
end