transit
This commit is contained in:
@@ -41,4 +41,7 @@ class UserController < Users::ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def login
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ Devise.setup do |config|
|
|||||||
# requests for sign in and sign up, you need to get a new CSRF token
|
# requests for sign in and sign up, you need to get a new CSRF token
|
||||||
# from the server. You can disable this option at your own risk.
|
# from the server. You can disable this option at your own risk.
|
||||||
# config.clean_up_csrf_token_on_authentication = true
|
# config.clean_up_csrf_token_on_authentication = true
|
||||||
|
config.clean_up_csrf_token_on_authentication = false
|
||||||
|
|
||||||
# ==> Configuration for :database_authenticatable
|
# ==> Configuration for :database_authenticatable
|
||||||
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
||||||
@@ -240,6 +241,7 @@ Devise.setup do |config|
|
|||||||
#
|
#
|
||||||
# The "*/*" below is required to match Internet Explorer requests.
|
# The "*/*" below is required to match Internet Explorer requests.
|
||||||
# config.navigational_formats = ['*/*', :html]
|
# config.navigational_formats = ['*/*', :html]
|
||||||
|
config.navigational_formats = ["*/*", :html, :turbo_stream, :json]
|
||||||
|
|
||||||
# The default HTTP method used to sign out a resource. Default is :delete.
|
# The default HTTP method used to sign out a resource. Default is :delete.
|
||||||
config.sign_out_via = [:delete, :get]
|
config.sign_out_via = [:delete, :get]
|
||||||
|
|||||||
+5
-4
@@ -3,7 +3,7 @@ Mozo::Application.routes.draw do
|
|||||||
match '/.well-known/*rest', to: 'errors#not_found', via: :all
|
match '/.well-known/*rest', to: 'errors#not_found', via: :all
|
||||||
match '/system/*rest', to: 'errors#not_found', via: :all
|
match '/system/*rest', to: 'errors#not_found', via: :all
|
||||||
devise_for :users, controllers: {
|
devise_for :users, controllers: {
|
||||||
registrations: 'users/registrations'
|
registrations: 'users/registrations',
|
||||||
} #, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
|
} #, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
|
||||||
resources :users, only: [:show]
|
resources :users, only: [:show]
|
||||||
#devise_for :suppliers, controllers: { confirmations: 'confirmations', registrations: 'registrations' }
|
#devise_for :suppliers, controllers: { confirmations: 'confirmations', registrations: 'registrations' }
|
||||||
@@ -41,9 +41,6 @@ Mozo::Application.routes.draw do
|
|||||||
get 'empty-page' => 'dashboard#empty_page', as: :empty_page
|
get 'empty-page' => 'dashboard#empty_page', as: :empty_page
|
||||||
|
|
||||||
|
|
||||||
post '/user_app' => 'dashboard#user_app_log' #TODO: separate high speed app at log.mozo.bar
|
|
||||||
post '/user_feedback' => 'user#feedback'
|
|
||||||
|
|
||||||
#WAITER
|
#WAITER
|
||||||
#get '/waiter' => 'waiter#index' #, controller: 'waiter', action: 'index'
|
#get '/waiter' => 'waiter#index' #, controller: 'waiter', action: 'index'
|
||||||
#get '/waiter/sections' => 'waiter#sections'
|
#get '/waiter/sections' => 'waiter#sections'
|
||||||
@@ -79,7 +76,11 @@ Mozo::Application.routes.draw do
|
|||||||
#post '/user/reject_join_request' => 'user#reject_join_request'
|
#post '/user/reject_join_request' => 'user#reject_join_request'
|
||||||
#post '/user/approve_join_request' => 'user#approve_join_request'
|
#post '/user/approve_join_request' => 'user#approve_join_request'
|
||||||
|
|
||||||
|
post '/user_app' => 'dashboard#user_app_log' #TODO: separate high speed app at log.mozo.bar
|
||||||
|
post '/user_feedback' => 'user#feedback'
|
||||||
|
|
||||||
get '/user/obtain_token' => 'user#obtain_token', as: :user_obtain_token
|
get '/user/obtain_token' => 'user#obtain_token', as: :user_obtain_token
|
||||||
|
post '/user/login' => 'user#login', as: :user_login
|
||||||
#post '/user/obtain_token' => 'user#obtain_token', constraints: {format: :json}
|
#post '/user/obtain_token' => 'user#obtain_token', constraints: {format: :json}
|
||||||
get '/close_window' => 'dashboard#close_window'
|
get '/close_window' => 'dashboard#close_window'
|
||||||
namespace :users, path: '/user/api/v1' do
|
namespace :users, path: '/user/api/v1' do
|
||||||
|
|||||||
Reference in New Issue
Block a user