discourse/app/views/users/omniauth_callbacks/complete.html.erb
xdite 9189d937f7 move all logic to omniauth
implement omniauth-facebook / omniauth-twitter
2013-02-13 15:08:38 +08:00

10 lines
206 B
Plaintext

<html>
<head></head>
<body>
<script type="text/javascript">
window.opener.Discourse.authenticationComplete(<%=@data.to_json.html_safe%>);
window.close();
</script>
</body>
</html>