summaryrefslogtreecommitdiff
path: root/swat/install
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 07:29:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:48 -0500
commitd5ac1f9bf4062139054fa2b4677f6bde952bec13 (patch)
tree3446de75dba1c6bb6f37155481a44b273b131fe3 /swat/install
parent86d628a292a22973597e0c06d4a36e20c58ae31c (diff)
downloadsamba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.tar.gz
samba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.tar.bz2
samba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.zip
r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7c28e415408e923bd9eefcd2d60f355)
Diffstat (limited to 'swat/install')
-rw-r--r--swat/install/newuser.esp3
1 files changed, 2 insertions, 1 deletions
diff --git a/swat/install/newuser.esp b/swat/install/newuser.esp
index 21a2cb361b..42c109df6b 100644
--- a/swat/install/newuser.esp
+++ b/swat/install/newuser.esp
@@ -9,6 +9,7 @@
<%
var f = FormObj("newuser", 3, 2);
var i;
+var rand = random_init();
f.element[0].label = "User Name";
f.element[0].name = "USERNAME";
@@ -29,7 +30,7 @@ if (form['submit'] == "Add" &&
form.UNIXNAME = form.USERNAME;
}
if (form.PASSWORD == undefined) {
- form.PASSWORD = randpass();
+ form.PASSWORD = rand.randpass();
}
newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln);
} else {