update token mismatch
This commit is contained in:
@@ -29,6 +29,7 @@ module LicenseVerification
|
||||
# redirect_to activate_path
|
||||
# end
|
||||
end
|
||||
authenticate_session_token
|
||||
end
|
||||
|
||||
def authenticate_session_token
|
||||
@@ -38,9 +39,12 @@ module LicenseVerification
|
||||
#Rails.logger.debug "token - " + token.to_s
|
||||
|
||||
@user = Employee.authenticate_by_token(token)
|
||||
if !@user
|
||||
if @user
|
||||
return true
|
||||
#Maybe log - login?
|
||||
else
|
||||
flash[:notice] = 'Invalid Access!'
|
||||
redirect_to root_path
|
||||
# return false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user