Here's a script that will work if you are willing to update the solutions
page:

Set this up as a plugin only called on the page you use for the password
changer:

<?php if (!defined('BOLTWIRE')) exit();
function BOLTXencrypt($value, $field) {
global $cryptkey;
return crypt($value, $cryptkey);
}

Then put this code on that page:

! Change Password

[form]
[t]
[r][c top]Current Password [c][password passnow]
[r][c]New Password [c][password password]
[r][c]Again [c][password password2]
[t]

[submit]
[command encrypt_1 {=passnow}]
[command if_1 "! equal {~password} {=encrypt_1} ? warn='Current password
{~password}={=encrypt_1} is not correct. Try again!'"]
[command if_2 "! equal {=password} {=password2} ? warn='New passwords do
not match. Try again!'"]
[command warn]
[command encrypt_2 {=password}]
[command reset password={=encrypt_2}]
[command savedata password page=member.{id}]
[form]

I tested it briefly and it seems to work.

Cheers,
Dan


On Wed, Jun 18, 2014 at 3:08 AM, TheOldFellow <[email protected]>
wrote:

> Using the process defined in solutions.community.passwords
> <http://www.boltwire.com/index.php?p=solutions.community.passwords>I
> can't get a working password changer.
>
> There are two problems:
>
> 1) The test for the current password fails.  I suspect the version 4.xx
> encryption is different from the one used by Caveman when he wrote the
> Crypt plugin, but my php isn't up to it.
>
> 2) The error message is truncated to just the first word.
>
> Any help would be appreciated.
> TOF.
>
> --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to