BigW Consortium Gitlab

  1. 10 Aug, 2017 1 commit
  2. 08 Aug, 2017 1 commit
    • Manually assign `notification_email` in the User factory when stubbed · 76544283
      Robert Speicher authored
      Because we assign this value in the model via a callback conditionally
      on `email_changed?`, this never gets set when using `build_stubbed`,
      resulting in a "can't be blank" validation error on this field.
      
      In this case, we can just assign it manually to the same value as
      `email`, which is generated via a sequence.
  3. 24 May, 2017 1 commit
  4. 04 May, 2017 1 commit
  5. 03 Apr, 2017 1 commit
  6. 24 Feb, 2017 2 commits
    • Don't allow deleting a ghost user. · 6fdb17cb
      Timothy Andrew authored
      - Add a `destroy_user` ability. This didn't exist before, and was implicit in
        other abilities (only admins could access the admin area, so only they could
        destroy all users; a user can only access their own account page, and so can
        destroy only themselves).
      
      - Grant this ability to admins, and when the current user is trying to destroy
        themselves. Disallow destroying ghost users in all cases.
      
      - Modify the `Users::DestroyService` to check this ability. Also check it in
        views to decide whether or not to show the "Delete User" button.
      
      - Add a short summary of the Ghost User to the bio.
    • Use a `ghost` boolean to track ghost users. · 8e684809
      Timothy Andrew authored
      Rather than using a separate `ghost` state. This lets us have the benefits of
      both ghost and blocked users (ghost: true, state: blocked) without having to
      rewrite a number of queries to include cases for `state: ghost`.
  7. 10 Feb, 2017 1 commit
  8. 06 Jun, 2016 1 commit
    • 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.
  9. 14 Apr, 2016 1 commit
  10. 15 Mar, 2016 1 commit
  11. 04 Mar, 2016 1 commit