Skip to content

Commit

Permalink
ensure users with usernames containing a dot can be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Aug 12, 2024
1 parent eb4f3c4 commit 5f9010b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
resources :tag_sensors
resources :tags
resources :measurements
resources :users

constraints id: /[^\/]+/ do
# Explicitly override to allow usernames with dots.
# See:https://stackoverflow.com/questions/5369654/why-do-routes-with-a-dot-in-a-parameter-fail-to-match
resources :users
end
resources :password_resets, only: [:show, :create, :update]
resources :oauth_applications, path: 'applications'
get :forward, to: "forwarding#authorize"
Expand Down

0 comments on commit 5f9010b

Please sign in to comment.