Security fix for doorkeeper

See http://homakov.blogspot.fr/2014/12/blatant-csrf-in-doorkeeper-most-popular.html