Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix session bug and lack of 403 handling. Closes play#154.
Add 403 handling to expire current session and show 403. This fixes a small bug: if someone is logged in and changes the application oauth settings then they would see an octobouncer cat with no message or help as to what was happening. This bug also appeared if the user revoked access to play and wanted to readd it. Added 403.html to public and styling for it and also iphone version. Nothing fancy. Steal Octobouncer for our own gains.
- Loading branch information
Showing
5 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
|
||
<link rel="stylesheet" href="/css/reset.css"> | ||
<link rel="stylesheet" href="/css/base.css"> | ||
<link rel="stylesheet" href="/css/jquery.ui.css"> | ||
<link media="only screen and (max-device-width: 480px)" href="/css/iphone.css" type="text/css" rel="stylesheet"> | ||
<link media="only screen and (max-device-width: 768px)" href="/css/tablet.css" type="text/css" rel="stylesheet"> | ||
<link media="only screen and (aspect-ratio: 16/9)" href="/css/tv.css" rel="stylesheet" type="text/css"> | ||
|
||
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,700,600' rel='stylesheet' type='text/css'> | ||
<link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'> | ||
|
||
<script type="text/javascript" src="/js/application.js"></script> | ||
|
||
<title>Play: 403 Unauthorized. You are not on the list.</title> | ||
|
||
</head> | ||
<body class="error-403"> | ||
|
||
<div style="Background: #fff; border-radius: 0.5em; margin: 1em; padding: 1em;"> | ||
|
||
<section class="notice"> | ||
<h1>clUb 403</h1> | ||
<h2>Sorry, you are not on the authorized list. Ask nicely and I might <a href="/" title="play">recheck the list</a>.</h2> | ||
</section> | ||
|
||
<img src="images/octobouncer.png" alt="octobouncer" width=448 height=448 /> | ||
</div> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters