1. 05 6月, 2019 1 次提交
  2. 19 2月, 2019 1 次提交
  3. 17 9月, 2018 1 次提交
  4. 31 5月, 2018 1 次提交
  5. 01 3月, 2018 2 次提交
  6. 02 2月, 2018 1 次提交
  7. 14 12月, 2017 1 次提交
  8. 09 12月, 2017 1 次提交
  9. 10 8月, 2017 1 次提交
  10. 09 8月, 2017 1 次提交
    • R
      Manually assign `notification_email` in the User factory when stubbed · 76544283
      Robert Speicher 提交于
      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.
      76544283
  11. 25 5月, 2017 1 次提交
  12. 04 5月, 2017 1 次提交
  13. 04 4月, 2017 1 次提交
  14. 24 2月, 2017 2 次提交
    • T
      Don't allow deleting a ghost user. · 6fdb17cb
      Timothy Andrew 提交于
      - 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.
      6fdb17cb
    • T
      Use a `ghost` boolean to track ghost users. · 8e684809
      Timothy Andrew 提交于
      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`.
      8e684809
  15. 11 2月, 2017 1 次提交
  16. 06 6月, 2016 1 次提交
    • T
      Add a `U2fRegistrations` table/model. · 791cc913
      Timothy Andrew 提交于
      - 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
  17. 14 4月, 2016 1 次提交
  18. 15 3月, 2016 1 次提交
  19. 05 3月, 2016 1 次提交