Skip to content

Commit

Permalink
Fix: Keep $_SESSION alive
Browse files Browse the repository at this point in the history
Function name changed in Pressbooks 5.7
  • Loading branch information
dac514 committed Apr 30, 2019
1 parent 060dc31 commit 9dbe6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-cas.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public function loginForm() {
public function handleLoginAttempt( $net_id, $email ) {

// Keep $_SESSION alive, CAS put info in it
remove_action( 'wp_login', '_pb_session_kill' );
remove_action( 'wp_login', '\Pressbooks\session_kill' );

// Try to find a matching WordPress user for the now-authenticated user's CAS NetID identity
$user = $this->matchUser( $net_id );
Expand Down

0 comments on commit 9dbe6dd

Please sign in to comment.