Cogflake Cogflake

May 19, 2024

PmWiki

www.wintersoasis.com

edit

Search

Confirm

Login.Confirm History

Hide minor edits - Show changes to markup

Changed line 20 from:
   grep “^:”  | while read —IFS:: username fname lname phone email pagecode pass
to:
   grep “^:”  | while read —IFS:: username email pagecode pass
Changed line 35 from:
         echo “:::::0:” >>Temp.AuthUserExtra
to:
         echo “::0:” >>Temp.AuthUserExtra
Changed line 51 from:
    grep “^:”  | while read —IFS:: username fname lname phone email pagecode pass
to:
    grep “^:”  | while read —IFS:: username email pagecode pass
Changed line 59 from:
          echo “:::::0:” >>Temp.AuthUserExtra
to:
          echo “::0:” >>Temp.AuthUserExtra
Added lines 1-69:

AuthUserSignup VERSION 2010–04–14 (: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

fi (:ifend:)

Page Actions

Recent Changes

Group & Page

Back Links