Fixed deprecation warning.

The new connect version breaks my code, since the behavior of the csrf() function was changed.