Skip to content

Commit

Permalink
Merge pull request #286 from RENCI/bugfix/login
Browse files Browse the repository at this point in the history
Fixes TIN login redirect
  • Loading branch information
mbwatson authored Nov 2, 2022
2 parents 9f12940 + 3f02abb commit 0648696
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/views/Auth/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export const LoginPage = (props) => {
</ol>
<Paragraph center>
<form
method="POST"
action={`https://redcap.vanderbilt.edu/plugins/TIN/sso/send_login?target-url=${redirectURL}`}
onSubmit={ (e) => {
e.preventDefault()
window.location.href = `https://redcap.vanderbilt.edu/plugins/TIN/sso/send_login?target-url=${encodeURIComponent(redirectURL)}`
} }
style={{ display: 'flex', justifyContent: 'center' }}
>
<Button type="submit" color="primary" variant="contained">
Expand Down

0 comments on commit 0648696

Please sign in to comment.