1. 19 7月, 2016 1 次提交
  2. 15 7月, 2016 1 次提交
  3. 13 7月, 2016 1 次提交
  4. 08 7月, 2016 1 次提交
    • D
      Added setting to set new users by default as external · a0a9494e
      Dravere 提交于
      As requested by the issue #14508 this adds an option in the application
      settings to set newly registered users by default as external. The
      default setting is set to false to stay backward compatible.
      a0a9494e
  5. 05 7月, 2016 1 次提交
  6. 02 7月, 2016 1 次提交
  7. 29 6月, 2016 1 次提交
  8. 28 6月, 2016 1 次提交
  9. 24 6月, 2016 1 次提交
    • R
      Fix an information disclosure when requesting access to a group containing private projects · aec3475d
      Rémy Coutable 提交于
      The issue was with the `User#groups` and `User#projects` associations
      which goes through the `User#group_members` and `User#project_members`.
      
      Initially I chose to use a secure approach by storing the requester's
      user ID in `Member#created_by_id` instead of `Member#user_id` because I
      was aware that there was a security risk since I didn't know the
      codebase well enough.
      
      Then during the review, we decided to change that and directly store the
      requester's user ID into `Member#user_id` (for the sake of simplifying
      the code I believe), meaning that every `group_members` / `project_members`
      association would include the requesters by default...
      
      My bad for not checking that all the `group_members` / `project_members`
      associations and the ones that go through them (e.g. `Group#users` and
      `Project#users`) were made safe with the `where(requested_at: nil)` /
      `where(members: { requested_at: nil })` scopes.
      
      Now they are all secure.
      Signed-off-by: NRémy Coutable <remy@rymai.me>
      aec3475d
  10. 23 6月, 2016 1 次提交
  11. 21 6月, 2016 1 次提交
  12. 18 6月, 2016 1 次提交
    • P
      Cache todo counters (pending/done) · f6bfa46d
      Paco Guzman 提交于
      - As todos are created/updated inside the TodoService
      we repopulate the cache just there for both pending/done todos
      - Todos as mark as done from the TodosController we update cache
      there too
      - All the added methods are kept in the User class for cohesion
      f6bfa46d
  13. 16 6月, 2016 3 次提交
    • J
      Revert "squashed merge and fixed conflicts" · 452c076a
      James Lopez 提交于
      This reverts commit 13e37a3e.
      452c076a
    • J
      squashed merge and fixed conflicts · 13e37a3e
      James Lopez 提交于
      13e37a3e
    • T
      Implement @DouweM's feedback. · 7ee0898a
      Timothy Andrew 提交于
      - Extract a duplicated `redirect_to`
      - Fix a typo: "token", not "certificate"
      - Have the "Expires at" datepicker be attached to a text field, not inline
      - Have both private tokens and personal access tokens verified in a
        single "authenticate_from_private_token" method, both in the
        application and API. Move relevant logic to
        `User#find_by_personal_access_token`
      - Remove unnecessary constants relating to API auth. We don't need a
        separate constant for personal access tokens since the param is the
        same as for private tokens.
      7ee0898a
  14. 14 6月, 2016 3 次提交
  15. 10 6月, 2016 2 次提交
  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. 03 6月, 2016 2 次提交
  18. 02 6月, 2016 3 次提交
  19. 31 5月, 2016 2 次提交
  20. 21 5月, 2016 1 次提交
  21. 20 5月, 2016 1 次提交
  22. 19 5月, 2016 2 次提交
  23. 18 5月, 2016 3 次提交
  24. 17 5月, 2016 3 次提交
  25. 14 5月, 2016 1 次提交
  26. 12 5月, 2016 1 次提交