Issue #2109303 by damiankloip, ParisLiakos: Convert CSRF checks in controllers to the routing system.