ok, got it. Just a typo.

I created a config.php file in my pages/config folder.

Put this in:

<?php if (!defined('BOLTWIRE')) exit();

function BOLTXencrypt($value, $field) {
global $cryptkey;
return crypt($value, $cryptkey);
}

if ($pageLink == 'action=password') {
function BOLTXencrypt($value, $field) {
global $cryptkey;
return crypt($value, $cryptkey);
}
}

This defines a new command that can be used in forms to encrypt form field 
contents.
As we are dealing with a form here, we need a command.
The commands name is "encrypt", so you have to use "encrypt" in your form. 
That is the typo.
(I also replace pageLink action.password with action=password)

2) I copied your action.password from above into a new page action.password 
(and replaced crypt with encrypt): 
!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 crypt_2 {=password}]
[command reset password={=encrypt_2}]

[command savedata password page=member.{id}]
[form]

I did not anything else, no auth etc.
This worked for me, hopefully for you too :-)

Greetings, Martin

Am Donnerstag, 26. Juni 2014 17:02:06 UTC+2 schrieb mz:
>
> TOF,
>
> Don't worry, I am sure there is a solution to this.
> If you keep $cryptkey="somestring" in index.php passwords are stored 
> encrypted. Fine.
> I will look into the form.
>
> Greetings, Martin
>
>
>>>

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