Roland, Here's one way:
<@EXCLUDE> <@ASSIGN request$pwSpecChars value="!...@#$&*+=?"> <@ASSIGN request$PWValidChars value="ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz23456789<@VAR request$pwSpecChars>"> <@ASSIGN request$pwValidLen value="<@LENGTH '@@local$pwValidChars'>"> <@IFEMPTY "<@ARG pwLen>"> <@ASSIGN request$pwLen value="5"> <@ELSE> <@ASSIGN request$pwLen value="<@ARG pwLen>"> </@IF> <@ASSIGN request$suggestedPW value=""> <@FOR START="1" STEP="1" STOP="@@request$pwLen"> <@ASSIGN request$suggestedPW value="<@VAR request$suggestedPW><@SUBSTRING STR='@@request$pwValidChars' START='<@RANDOM HIGH="@@request$pwValidLen" LOW="1">' NUMCHARS='1'>"> </@FOR> </@EXCLUDE> Bill On Tue, Apr 20, 2010 at 9:26 AM, Roland Dumas <[email protected]> wrote: > > any ideas on how to generate temporary passwords in witango? @RANDOM will > give me an integer, yes, but how to create combination of integer/alpha not > obvious. > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
