modify xsrf generate method