PHP 클래스 Csrf, huge

상속: extends Slim\Middleware
파일 보기 프로젝트 열기: panique/huge 1 사용 예제들

공개 메소드들

메소드 설명
isTokenValid ( ) : boolean checks if CSRF token in session is same as in the form submitted
makeToken ( ) : string get CSRF token and generate a new one if expired

메소드 상세

isTokenValid() 공개 정적인 메소드

checks if CSRF token in session is same as in the form submitted
public static isTokenValid ( ) : boolean
리턴 boolean

makeToken() 공개 정적인 메소드

get CSRF token and generate a new one if expired
public static makeToken ( ) : string
리턴 string