update multi_tenancy and current shop

This commit is contained in:
Thein Lin Kyaw
2020-01-13 16:35:57 +06:30
parent 66c375cc38
commit 3088aa3016
4 changed files with 13 additions and 21 deletions

View File

@@ -6,14 +6,13 @@ module TokenVerification
before_action :authenticate
end
protected
# Authenticate the user with token based authentication
def authenticate
authenticate_token || render_unauthorized
end
def authenticate_token
def authenticate_token
authenticate_with_http_token do |token, options|
# Rails.logger.debug "token - " + token.to_s
if(options.length !=0 && options["from"] == "DOEMAL")