Skip to content

Commit

Permalink
fix username with the @ in the usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 19, 2024
1 parent 29eedf8 commit 3d34755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

resources :projects, constraints: { id: /[^\/]+/ }

resources :users, path: :accounts, constraints: { id: /[\d\w\.\-\%\+ ]+/ }
resources :users, path: :accounts, constraints: { id: /[\d\w\.\@\-\%\+ ]+/ }

get '/users/subscribe/:username', to: 'users#subscribe'
get '/users/un-subscribe/:email', to: 'users#un_subscribe'
Expand Down Expand Up @@ -219,7 +219,7 @@

# User
post '/accounts/:id/custom_ontologies' => 'users#custom_ontologies', :as => :custom_ontologies
get '/login_as/:login_as' => 'login#login_as', constraints: { login_as: /[\d\w\.\-\%\+ ]+/ }
get '/login_as/:login_as' => 'login#login_as', constraints: { login_as: /[\d\w\.\@\-\%\+ ]+/ }
post '/login/send_pass', to: 'login#send_pass'

get '/groups' => 'taxonomy#index'
Expand Down

0 comments on commit 3d34755

Please sign in to comment.