Hide minor edits - Show changes to markup
grep “^:” | while read —IFS:: username fname lname phone email pagecode pass
grep “^:” | while read —IFS:: username email pagecode pass
echo “:::::0:” >>Temp.AuthUserExtra
echo “::0:” >>Temp.AuthUserExtra
grep “^:” | while read —IFS:: username fname lname phone email pagecode pass
grep “^:” | while read —IFS:: username email pagecode pass
echo “:::::0:” >>Temp.AuthUserExtra
echo “::0:” >>Temp.AuthUserExtra
(:linebreaks:)
(:if false:) wikish_form process if test -z || test -z || test == 0 then
echo “Please use the link provided in the email to access this page.” exit
fi set -s AuthUserExtra = “SiteAdmin.AuthUserExtra” set -s PAGEVARS = ‘’ # suppress fmtpagename due to funky chars in passwd if test -n then
read —clear # ANY CHANGE TO THE FIELDS REQUIRES A CHANGE ON THE LINE BELOW grep “^:” | while read —IFS:: username fname lname phone email pagecode pass do if test == then set -s newpass = ‘a31635′ set -s newcrypt = ‘`crypt ’ # Change the password in AuthUser if the username is confirmed there if grep -q “^:” SiteAdmin.AuthUser then grep -v “^:” >SiteAdmin.AuthUser echo “:” >>SiteAdmin.AuthUser fi # Now change the password in AuthUserExtra (also zero the code) grep -v ‘^:’ >Temp.AuthUserExtra # ANY CHANGE TO THE FIELDS REQUIRES A CHANGE ON THE LINE BELOW echo “:::::0:” >>Temp.AuthUserExtra cp -q Temp.AuthUserExtra echo “Password changed for user . The new password is . It is recommended to go directly to Login.Signup to change your password.” exit fi done echo “Error: Your email link is not synchronized with the state of the password file. Please reissue your change-password request.”
else
if grep -q “^:” SiteAdmin.AuthUser then echo “User already exists. Cannot add this user.” exit fi read —clear # ANY CHANGE TO THE FIELDS REQUIRES A CHANGE ON THE LINE BELOW grep “^:” | while read —IFS:: username fname lname phone email pagecode pass do if test == then echo “:” >>SiteAdmin.AuthUser # Now make the code from a random number to a 0 to indicate it’s confirmed grep -v ‘^:’ >Temp.AuthUserExtra # ANY CHANGE TO THE FIELDS REQUIRES A CHANGE ON THE LINE BELOW echo “:::::0:” >>Temp.AuthUserExtra cp -q Temp.AuthUserExtra echo “User confirmed. You may log in immediately by clicking on this link. “ echo “(By clicking on this link you will automatically be logged OUT before allowing you to log in again.)” exit fi done echo “Please use the link provided in the email to access this page.” # Actually a wrong code, but let’s avoid encouraging them trying a million times