Skip to content

Commit

Permalink
fix: redirect to origin from magic link
Browse files Browse the repository at this point in the history
(see #2894)
  • Loading branch information
adekbadek committed Jan 31, 2024
1 parent 9be55ff commit 717f501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/reader-activation/class-reader-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ public static function process_auth_form() {
switch ( $action ) {
case 'signin':
if ( self::is_reader_without_password( $user ) ) {
$sent = Magic_Link::send_email( $user );
$sent = Magic_Link::send_email( $user, $current_page_url );
if ( true !== $sent ) {
return self::send_auth_form_response( new \WP_Error( 'unauthorized', \is_wp_error( $sent ) ? $sent->get_error_message() : __( 'We encountered an error sending an authentication link. Please try again.', 'newspack-plugin' ) ) );
}
Expand Down

0 comments on commit 717f501

Please sign in to comment.