• Timothy Andrew's avatar
    Add a `U2fRegistrations` table/model. · 791cc913
    Timothy Andrew authored
    - To hold registrations from U2F devices, and to authenticate them.
    - Previously, `User#two_factor_enabled` was aliased to the
      `otp_required_for_login` column on `users`.
    - This commit changes things a bit:
        - `User#two_factor_enabled` is not a method anymore
        - `User#two_factor_enabled?` checks both the
          `otp_required_for_login` column, as well as `U2fRegistration`s
        - Change all instances of `User#two_factor_enabled` to
          `User#two_factor_enabled?`
    - Add the `u2f` gem, and implement registration/authentication at the
      model level.
    791cc913
Name
Last commit
Last update
..
admin_builds_spec.rb Loading commit data...
admin_disables_two_factor_spec.rb Loading commit data...
admin_health_check_spec.rb Loading commit data...
admin_hooks_spec.rb Loading commit data...
admin_projects_spec.rb Loading commit data...
admin_runners_spec.rb Loading commit data...
admin_users_spec.rb Loading commit data...
admin_uses_repository_checks_spec.rb Loading commit data...