Im trying to figure out the best way to loop through my list of users that have set their password to 'password' and replace it with random characters.
SELECT nvcPassword
FROM test
WHERE nvcPassword = 'password'
The way I tried it was:
<cfloop index="i" from="1" to="16">
<CFQUERY DATASOURCE="411_users">
UPDATE test
SET nvcPassword='#RandRange(11111, 99999)#'
WHERE nvcPassword='password'
</CFQUERY>
</cfloop>
But its all the same number.
Thanks
SELECT nvcPassword
FROM test
WHERE nvcPassword = 'password'
The way I tried it was:
<cfloop index="i" from="1" to="16">
<CFQUERY DATASOURCE="411_users">
UPDATE test
SET nvcPassword='#RandRange(11111, 99999)#'
WHERE nvcPassword='password'
</CFQUERY>
</cfloop>
But its all the same number.
Thanks