Login.Confirm History

Hide minor edits - Show changes to markup

March 01, 2009, at 08:34 PM by 92.80.120.183 -
Added lines 1-62:

(: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

    grep "^:"  | while read --initialize --IFS:: username fname lname phone email pagecode pass
    do
       if test  == 
       then
          set -s newpass = 'a23804'
          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
          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

    # ANY CHANGE TO THE FIELDS REQUIRES A CHANGE ON THE LINE BELOW 
    grep "^:"  | while read --initialize --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
          echo ":::::0:" >>Temp.AuthUserExtra
          cp -q Temp.AuthUserExtra 
          echo "User  confirmed.  You may log in immediately by clicking on this link.  (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

fi (:ifend:)


Page last modified on March 01, 2009, at 08:35 PM