Exemplo n.º 1
0
  def get(self):
    """Output a list of all current users along with the requested token."""
    urlsafe_key = self.request.get('key')
    user = User.GetByKey(urlsafe_key)
    invite_code = _MakeInviteCode(user)

    self.response.write(_RenderUserDetailsTemplate(user, invite_code))
Exemplo n.º 2
0
 def get(self):
   """Output details based on the user key passed in."""
   urlsafe_key = self.request.get('key')
   user = User.GetByKey(urlsafe_key)
   self.response.write(_RenderUserDetailsTemplate(user))
Exemplo n.º 3
0
 def get(self):
   """Lookup the user and toggle the revoked status of keys."""
   urlsafe_key = self.request.get('key')
   User.ToggleKeyRevoked(urlsafe_key)
   user = User.GetByKey(urlsafe_key)
   self.response.write(_RenderUserDetailsTemplate(user))
Exemplo n.º 4
0
 def get(self):
   """Find the user matching the specified key and generate a new key pair."""
   urlsafe_key = self.request.get('key')
   User.UpdateKeyPair(urlsafe_key)
   user = User.GetByKey(urlsafe_key)
   self.response.write(_RenderUserDetailsTemplate(user))