AppController/djinn.rb
# Queries the UserAppServer to see if the given user exists.
#
# Args:
#   username: The email address registered as username for the user's application.
Queries the UserAppServer to see if the given user exists.
Args:
username: The email address registered as username for the user's application.
Queries the UserAppServer to see if the given user exists . Args : username : The email address registered as username for the user ' s application .
def does_user_exist(username, secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    begin
      uac = UserAppClient.new(my_node.private_ip, @@secret)
      return uac.does_user_exist?(username)
    rescue FailedNodeException
      Djinn.log_warn("Failed to talk to the UserAppServer to check if the " +
        "the user #{username} exists.")
    end
  end
def does_user_exist ( username , secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) begin uac = UserAppClient . new ( my_node . private_ip , @@secret ) return uac . does_user_exist? ( username ) rescue FailedNodeException Djinn . log_warn ( "Failed to talk to the UserAppServer to check if the " + "the user #{username} exists." ) end end
Queries the UserAppServer to see if the given user exists.
Queries the UserAppServer to see if the given user exists .
username
<not_specific>
secret
<not_specific>