Harro Verton wrote on Thursday 14th of July 2011:Currently, the CSRF code only supports a single form at the time (a shortcoming other frameworks have as well), you'll have the same issue if you have multiple forms on a page, or multple pages open to the same site. I ran into this issue as well, but haven't had time to look into it. Could you add this as an issue at http://github.com/fuel/core/issues?
public static function check_token($value = null) { $value = $value ?: \Input::post(static::$csrf_token_key, 'fail'); // always reset token once it's been checked and still the same if (static::fetch_token() == static::$csrf_old_token and ! empty($value) and !Input::is_ajax()) { static::set_token(true); } return $value === static::$csrf_old_token; }
Harro Verton wrote on Thursday 17th of May 2012:I don't think this is addressed yet. It was on the roadmap for 1.1, but I can't find an issue relating to it. So can you please create one on https://github.com/fuel/core/issues so it can be picked up?
It looks like you're new here. If you want to get involved, click one of these buttons!