Update customers_controller.rb

This commit is contained in:
2016-09-02 11:14:01 -04:00
committed by GitHub
parent af25326c23
commit 357e5d4490

View File

@@ -95,6 +95,7 @@ class CustomersController < ApplicationController
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
if token
@issue = Issue.find token.first.issue_id
render :template => 'issues/show'
else
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end