debian-mirror-gitlab/app/helpers/device_registration_helper.rb

12 lines
328 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# 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