From 560bca344ae467cda03e758159fbf131d5c49f43 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 29 Aug 2020 06:21:50 +0000 Subject: Adds two factor authentication support (#1237). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19988 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 03071fad9..3e6ae9cc7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,6 +22,9 @@ Rails.application.routes.draw do match 'login', :to => 'account#login', :as => 'signin', :via => [:get, :post] match 'logout', :to => 'account#logout', :as => 'signout', :via => [:get, :post] + match 'account/twofa/confirm', :to => 'account#twofa_confirm', :via => :get + match 'account/twofa/resend', :to => 'account#twofa_resend', :via => :post + match 'account/twofa', :to => 'account#twofa', :via => [:get, :post] match 'account/register', :to => 'account#register', :via => [:get, :post], :as => 'register' match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password' match 'account/activate', :to => 'account#activate', :via => :get @@ -85,6 +88,13 @@ Rails.application.routes.draw do match 'my/add_block', :controller => 'my', :action => 'add_block', :via => :post match 'my/remove_block', :controller => 'my', :action => 'remove_block', :via => :post match 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :via => :post + match 'my/twofa/:scheme/activate/init', :controller => 'twofa', :action => 'activate_init', :via => :post + match 'my/twofa/:scheme/activate/confirm', :controller => 'twofa', :action => 'activate_confirm', :via => :get + match 'my/twofa/:scheme/activate', :controller => 'twofa', :action => 'activate', :via => [:get, :post] + match 'my/twofa/:scheme/deactivate/init', :controller => 'twofa', :action => 'deactivate_init', :via => :post + match 'my/twofa/:scheme/deactivate/confirm', :controller => 'twofa', :action => 'deactivate_confirm', :via => :get + match 'my/twofa/:scheme/deactivate', :controller => 'twofa', :action => 'deactivate', :via => [:get, :post] + match 'users/:user_id/twofa/deactivate', :controller => 'twofa', :action => 'admin_deactivate', :via => :post resources :users do resources :memberships, :controller => 'principal_memberships' -- cgit v1.2.3