1
0
Fork 0
mirror of https://github.com/Oreolek/ticketauth.git synced 2024-04-29 23:59:26 +03:00

don't check ticket expiry

This commit is contained in:
Alexander Yakovlev 2018-05-01 02:20:35 +07:00
parent 62e45d2dea
commit 2658ad857e

View file

@ -87,11 +87,13 @@ function efTktAuth_OnUserLoadFromSession ( $user, &$result )
die( $error );
}
/*
if ( $timestamp + ((int) $GLOBALS['wgTktAuth_TicketExpiryMinutes']) * 60 < time() ) {
$error = 'TicketAuth: Provided ticket has expired. ';
wfDebug( $error . "\n" );
die( $error . 'Please, refresh the web page that has generated this link and retry.' );
}
*/
if ( $password != '' && !preg_match( '/^[0-9a-f]{32}$/i', $password ) ) {
$error = 'TicketAuth: Invalid password MD5 hash was provided.';