Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Apr 18, 2024
1 parent e4b1e03 commit 5648cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/SSO_Helpers_Legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public static function handleLegacyLogin( $nonce, $salt ) {
wp_safe_redirect( wp_login_url() );
exit;
}
$has_epoch = preg_match( '/-e(\d+)$/', $nonce, $epoch );

$has_epoch = preg_match( '/-e(\d+)$/', $nonce, $epoch );
$expired = ( $has_epoch && ( time() - $epoch[1] ) > 300 ) ? true : false;

// Too many failed attempts
Expand Down

0 comments on commit 5648cb0

Please sign in to comment.