Author: sevein
Date: Tue Jul 10 21:11:46 2012
New Revision: 11898
Log:
Cosmetic changes
Modified:
trunk/lib/task/resetPasswordTask.class.php
Modified: trunk/lib/task/resetPasswordTask.class.php
==============================================================================
--- trunk/lib/task/resetPasswordTask.class.php Tue Jul 10 20:03:59 2012
(r11897)
+++ trunk/lib/task/resetPasswordTask.class.php Tue Jul 10 21:11:46 2012
(r11898)
@@ -87,25 +87,25 @@
// We refer to the length of $possible a few times, so let's grab it now
$maxlength = strlen($possible);
-
+
// Check for length overflow and truncate if necessary
if ($length > $maxlength)
{
$length = $maxlength;
}
-
+
// Set up a counter for how many characters are in the password so far
- $i = 0;
-
+ $i = 0;
+
// add random characters to $password until $length is reached
while ($i < $length)
{
// Pick a random character from the possible ones
$char = substr($possible, mt_rand(0, $maxlength - 1), 1);
-
+
// Have we already used this character in $password?
if (!strstr($password, $char))
- {
+ {
// No, so it's OK to add it onto the end of whatever we've already
got...
$password .= $char;
// ... and increase the counter by one
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.