1. 27 Jul, 2018 1 commit
  2. 18 Aug, 2016 1 commit
    • Timothy Andrew's avatar
      Allow naming U2F devices. · 16c44a5d
      Timothy Andrew authored
      1. Display a list of U2F devices on the `two_factor_auth` page.
      
      2. Allow deleting individual U2F devices.
      
      3. Allow setting a (optional) name for a device (during registration).
      16c44a5d
  3. 06 Jun, 2016 1 commit
    • 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