-
- Downloads
Implement @DouweM's feedback.
- 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.
parent
faa0e3f7
Branches
Tags
Showing
- app/controllers/application_controller.rb 6 additions, 16 deletionsapp/controllers/application_controller.rb
- app/controllers/profiles/personal_access_tokens_controller.rb 4 additions, 2 deletions...controllers/profiles/personal_access_tokens_controller.rb
- app/models/user.rb 5 additions, 0 deletionsapp/models/user.rb
- app/views/layouts/nav/_profile.html.haml 0 additions, 1 deletionapp/views/layouts/nav/_profile.html.haml
- app/views/profiles/personal_access_tokens/index.html.haml 3 additions, 12 deletionsapp/views/profiles/personal_access_tokens/index.html.haml
- lib/api/helpers.rb 3 additions, 11 deletionslib/api/helpers.rb
- spec/features/profiles/personal_access_tokens_spec.rb 1 addition, 0 deletionsspec/features/profiles/personal_access_tokens_spec.rb
Please register or sign in to comment