app/controllers/application_controller.rb
# Check to ensure hmac validation was run
Check to ensure hmac validation was run
Check to ensure hmac validation was run
def ensure_hmac_passed
      return if session['passed_hmac'] == params['salt']
      session.clear
      flash['alert-danger'] = 'Hmac validation error'
      redirect to '/', 403
    end
def ensure_hmac_passed return if session [ 'passed_hmac' ] == params [ 'salt' ] session . clear flash [ 'alert-danger' ] = 'Hmac validation error' redirect to '/' , 403 end
Check to ensure hmac validation was run
Check to ensure hmac validation was run