CSRF
  • Namespace
  • Class
  • Tree

Namespaces

  • PHP
  • Riimu
    • Kit
      • CSRF
        • Source
        • Storage

Classes

  • HeaderSource
  • PostSource

Interfaces

  • TokenSource

Class PostSource

Looks for the token in the $_POST global array variable.

Riimu\Kit\CSRF\Source\PostSource implements Riimu\Kit\CSRF\Source\TokenSource
Namespace: Riimu\Kit\CSRF\Source
Copyright: Copyright (c) 2014, Riikka Kalliomäki
License: MIT License
Author: Riikka Kalliomäki riikka.kalliomaki@gmail.com
Located at Source/PostSource.php

Methods summary

public
# __construct( string $fieldName = 'csrf_token' )

Creates a new instance of PostSource.

Creates a new instance of PostSource.

Parameters

$fieldName
Name of the input field in $_POST
public string|false
# getRequestToken( )

Returns the token sent in the request or false if none was found.

Returns the token sent in the request or false if none was found.

Returns

string|false
The sent token or false for none

Implementation of

Riimu\Kit\CSRF\Source\TokenSource::getRequestToken()
CSRF API documentation generated by ApiGen