2014-10-15 11:00:34 -04:00
|
|
|
<!DOCTYPE html>
|
2013-02-06 09:48:55 -05:00
|
|
|
<html>
|
2014-10-15 11:00:34 -04:00
|
|
|
<head>
|
|
|
|
<title><%= SiteSetting.title %></title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
<style type="text/css">
|
|
|
|
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
|
|
div.dialog {
|
|
|
|
width: 90%;
|
|
|
|
padding: 0 1em;
|
|
|
|
margin: 2em auto 0 auto;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border-right-color: #999;
|
|
|
|
border-bottom-color: #999;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="dialog">
|
|
|
|
<p><%=t "login.close_window" %></p>
|
|
|
|
|
2013-02-06 09:48:55 -05:00
|
|
|
<script type="text/javascript">
|
2016-06-09 14:51:38 -04:00
|
|
|
if (window.opener) {
|
|
|
|
window.opener.Discourse.authenticationComplete(<%=@auth_result.to_client_hash.to_json.html_safe%>);
|
|
|
|
}
|
2016-06-09 14:20:44 -04:00
|
|
|
|
|
|
|
// On facebook browser, just redirect and don't close
|
|
|
|
var ua = navigator.userAgent || navigator.vendor || window.opera;
|
2016-06-09 15:35:17 -04:00
|
|
|
// if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
|
|
|
// window.location.href = '<%= Discourse.base_url.html_safe %>';
|
|
|
|
// } else {
|
2016-06-09 14:20:44 -04:00
|
|
|
window.close();
|
2016-06-09 15:35:17 -04:00
|
|
|
// }
|
2013-02-06 09:48:55 -05:00
|
|
|
</script>
|
2014-10-15 11:00:34 -04:00
|
|
|
</div>
|
|
|
|
</body>
|
2013-02-06 09:48:55 -05:00
|
|
|
</html>
|