AppController/djinn.rb
# Resets a user's password.
#
# Args:
#   username: The email address for the user whose password will be changed.
#   password: The SHA1-hashed password that will be set as the user's password.
Resets a user's password.
Args:
username: The email address for the user whose password will be changed.
password: The SHA1-hashed password that will be set as the user's password.
Resets a user ' s password . Args : username : The email address for the user whose password will be changed . password : The SHA1 - hashed password that will be set as the user ' s password .
def reset_password(username, password, secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    begin
      uac = UserAppClient.new(my_node.private_ip, @@secret)
      return uac.change_password(username, password)
    rescue FailedNodeException
      Djinn.log_warn("Failed to talk to the UserAppServer while resetting " +
        "the user's password.")
    end
  end
def reset_password ( username , password , secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) begin uac = UserAppClient . new ( my_node . private_ip , @@secret ) return uac . change_password ( username , password ) rescue FailedNodeException Djinn . log_warn ( "Failed to talk to the UserAppServer while resetting " + "the user's password." ) end end
Resets a user's password.
Resets a user ' s password .
username
<not_specific>
password
<not_specific>
secret
<not_specific>