end
def require_user
- redirect_to :controller => 'user', :action => 'login' unless @user
+ redirect_to :controller => 'user', :action => 'login', :referer => request.request_uri unless @user
end
def authorize(realm='Web Password', errormessage="Couldn't authenticate you")