GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.
Homepage: http://www.communityengine.org
Clone URL: git://github.com/bborn/communityengine.git
auth denied response for js requests
bborn (author)
Thu Oct 02 10:57:03 -0700 2008
commit  8c7a8dccc0a199727f2366112d9d96865806207f
tree    d9d943587fe7a5cd217f28e209b3f0e6e8920c24
parent  5174954fdb6df33d6f365293a7917e0994bd3282
...
109
110
111
 
 
 
 
112
113
114
...
109
110
111
112
113
114
115
116
117
118
0
@@ -109,6 +109,10 @@ module AuthenticatedSystem
0
           headers["WWW-Authenticate"] = %(Basic realm="Web Password")
0
           render :text => "Could't authenticate you", :status => '401 Unauthorized'
0
         end
0
+ accepts.js do
0
+ store_location
0
+ redirect_to(:controller => '/sessions', :action => 'new') and return false
0
+ end
0
       end
0
       false
0
     end

Comments

    No one has commented yet.