ted hart
|
Posted: 11/27/2003, 10:04 PM |
|
Hello,
Please help, How would I be able to automatically generate a random value to
be sent via email as a password for newly regsitered user.
Thanks
Ted
|
|
|
DonB
|
Posted: 11/28/2003, 5:10 AM |
|
Platform?
Using ASP on IIS (Windows 2K), I have relied on this to generate an
identifier for new users:
x =
replace(replace(replace(left(createobject("scriptlet.typelib").guid,38),"}",
""),"{",""),"-","")
The object "scriptlet.typelib" has a ".guid" property that generates a
unique string. The above line trims it down to 38 characters and removes
some hyphens and the outer "{ }" enclosing it. This leaves a hexadecimal
value you could use as the password.
--
DonB
http://www.gotodon.com/ccbth
"ted hart" <ted@hart.com> wrote in message
news:bq6ohv$b61$1@news.codecharge.com...
> Hello,
>
> Please help, How would I be able to automatically generate a random value
to
> be sent via email as a password for newly regsitered user.
>
> Thanks
> Ted
>
>
|
|
|
|