debian-mirror-gitlab/app/helpers/device_registration_helper.rb
2023-05-27 22:25:52 +05:30

11 lines
328 B
Ruby

# 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