From 3d347555cdbc1c62b6de9ee4b1b80ca802c4a13f Mon Sep 17 00:00:00 2001 From: Syphax Date: Tue, 19 Nov 2024 16:41:03 +0100 Subject: [PATCH] fix username with the `@` in the usernames --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6b35ad7de..ea0c313f2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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' @@ -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'