Skip to content

Commit

Permalink
email: External Auth Redirect
Browse files Browse the repository at this point in the history
Use  window.location.href to redirect instead of href click
  • Loading branch information
protich committed Jul 20, 2022
1 parent c3314a0 commit 163c28b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/staff/email.inc.php
Expand Up @@ -211,7 +211,6 @@
include STAFFINC_DIR . 'templates/email-smtp.tmpl.php';
?>
</div>
<a href="#" target="_blank" id="extauth" ></a>
<?php
} ?>
<p style="text-align:center;">
Expand Down Expand Up @@ -240,8 +239,7 @@
?>/auth/config/'+type+'/'+target, 201, function (xhr) {
$(this).removeClass('save pending');
if (xhr.responseJSON && xhr.responseJSON.redirect)
$('a#extauth').attr('href',
xhr.responseJSON.redirect).click();
window.location.href = xhr.responseJSON.redirect;
},
{size:(target == 'basic') ? 'normal' : 'xl'}
);
Expand Down

0 comments on commit 163c28b

Please sign in to comment.