[ENH] CheckCsrf : combine the confirmation and ticket check, and replace check_authenticity() deprecated function