<script>
// Endpoint checks if authenticated user is part of smith group otherwise add and send email
jQuery.ajax({
  url: "/rest/scriptrunner/latest/custom/ewcAutoMemberShip",
  headers: {
    'X-Atlassian-Token' : 'nocheck',
    'Content-type' : 'application/json'
  },
  type: "POST",
  dataType: 'text',
  data: JSON.stringify({
    
    "email": AJS.params.remoteUser,
	  
  }),
  success: function(text){
    //console.log("Response: "+ text)
	window.location.replace("https://platform.entrepreneurshipworldcup.com/");
  },
  error: function(err){
    alert("trouble");
	window.location.replace("https://platform.entrepreneurshipworldcup.com/");
  }
});

</script>



<style>


.main-container {
    min-height: calc(100vh - 50px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
div#toggle {
    display: none;
}

</style>