app: mark the contact forms as not sensitive to trusted tokens

Instructeurs waiting for a confirmation token should be able to
access the contact form (especially to ask for help).

Fix #4198
This commit is contained in:
Pierre de La Morinerie 2019-08-13 17:45:51 +00:00
parent e6c5b24bcd
commit 4e9895c11b

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')