Merge pull request #4200 from betagouv/fix-sensitive-contact-form

app: mark the contact forms as not sensitive to trusted tokens
This commit is contained in:
Paul Chavard 2019-08-13 19:50:17 +01:00 committed by GitHub
commit 59101b39b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,6 +201,8 @@ class ApplicationController < ActionController::Base
if path == '/' ||
path == '/users/sign_out' ||
path == '/contact' ||
path == '/contact-admin' ||
path.start_with?('/connexion-par-jeton') ||
path.start_with?('/api/') ||
path.start_with?('/lien-envoye')