Skip to content

Commit

Permalink
Merge pull request #27 from angelocali/add-hook-after-auth-cookie-set
Browse files Browse the repository at this point in the history
Add hook to run code after auth cookie is set
  • Loading branch information
danielbachhuber authored Jun 1, 2021
2 parents 04c620a + 82874cc commit 5f4e02a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions one-time-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ function one_time_login_handle_token() {
do_action( 'one_time_login_logged_in', $user );
update_user_meta( $user->ID, 'one_time_login_token', $tokens );
wp_set_auth_cookie( $user->ID, true, is_ssl() );
do_action( 'one_time_login_after_auth_cookie_set', $user );
wp_safe_redirect( admin_url() );
exit;
}
Expand Down

0 comments on commit 5f4e02a

Please # to comment.