Displaying 1 result from an estimated 1 matches for "single_access_allowed".
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
...spect shows the correct
''xxxSingle_Access_Tokenxxx''
    user_hash = RegisteredUserSession.find.record
    user = RegisteredUser.find(user_hash)
    user.update(params[:user])
    user.save
    respond_to do |format|
      format.json  { head :ok }
    end
  end
  private
    def single_access_allowed?
      true
    end
end
class UserSession < Authlogic::Session::Base
  allow_http_basic_auth = true
  params_key = ''user_credentials''
  single_access_allowed_request_types = :all
end
class RegisteredUserSession < UserSession
end
class User < ActiveRecord::Base
  se...