Skip to content
Snippets Groups Projects

Greg 89 login redirect

Merged elg requested to merge GREG-89-login-redirect into master
2 files
+ 15
3
Compare changes
  • Side-by-side
  • Inline
Files
2
import { useEffect } from 'react'
import { Redirect } from 'react-router-dom'
import { submitJsonOpts } from 'utils'
import { submitJsonOpts, setCookie } from 'utils'
function InviteLink() {
// Fetch backend endpoint to preserve invite_id in backend session then redirect
@@ -11,6 +11,7 @@ function InviteLink() {
useEffect(() => {
fetch('/api/ui/v1/invitecheck/', submitJsonOpts('POST', { uuid: id }))
}, [])
setCookie('redirect', 'guestregister')
return <Redirect to="/invite" />
}
Loading