bin2hex not vice versa
This commit is contained in:
parent
6e6d143aab
commit
1d4791d38c
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ function settings_post(&$a) {
|
||||||
$pass = '';
|
$pass = '';
|
||||||
openssl_public_encrypt($mail_pass,$pass,$a->user['pubkey']);
|
openssl_public_encrypt($mail_pass,$pass,$a->user['pubkey']);
|
||||||
q("UPDATE `mailacct` SET `pass` = '%s' WHERE `uid` = %d LIMIT 1",
|
q("UPDATE `mailacct` SET `pass` = '%s' WHERE `uid` = %d LIMIT 1",
|
||||||
dbesc(hex2bin($pass)),
|
dbesc(bin2hex($pass)),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue