mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:29:25 +08:00
b3aebca406
this feature means we attempt to log in without opening a frame.
35 lines
966 B
Plaintext
35 lines
966 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<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>
|
|
|
|
<script type="text/javascript">
|
|
if(window.opener) {
|
|
window.opener.Discourse.authenticationComplete(<%=@auth_result.to_client_hash.to_json.html_safe%>);
|
|
window.close();
|
|
} else {
|
|
window.location = <%= @origin.inspect %>;
|
|
}
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|