lib/stoor/github_auth.rb in stoor-0.1.8 vs lib/stoor/github_auth.rb in stoor-0.1.9
- old
+ new
@@ -2,18 +2,16 @@
class GithubAuth < Sinatra::Base
register Sinatra::Auth::Github
register Mustache::Sinatra
-# def initialize(*)
-# @github_options = {}
-# @stoor_options = {}
-# super
-# end
-
get '/logout' do
logout!
mustache :logout
+ end
+
+ get '/sorry' do
+ mustache :sorry
end
get '/*' do
session['stoor.github.authorized'] = nil