From 093edd4750c7142277cf82bb0e587927dbef861b Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Wed, 3 Apr 2002 21:53:17 +0000 Subject: [PATCH] Pass along the user password if specified. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1174 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/micasa/simulator/client/SimulatorApp.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java b/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java index 3302c3375..e64823e54 100644 --- a/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java +++ b/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java @@ -1,5 +1,5 @@ // -// $Id: SimulatorApp.java,v 1.5 2002/02/09 20:47:11 mdb Exp $ +// $Id: SimulatorApp.java,v 1.6 2002/04/03 21:53:17 shaper Exp $ package com.threerings.micasa.simulator.client; @@ -101,9 +101,13 @@ public class SimulatorApp username = "bob" + ((int)(Math.random() * Integer.MAX_VALUE) % 500); } + String password = System.getProperty("password"); + if (password == null) { + password = "test"; + } // create and set our credentials - Credentials creds = new UsernamePasswordCreds(username, "test"); + Credentials creds = new UsernamePasswordCreds(username, password); client.setCredentials(creds); client.logon(); }