Commit cc4f64a6 authored by tbrehm's avatar tbrehm
Browse files

No commit message

No commit message
parent 77c16c1c
...@@ -672,7 +672,7 @@ class tform { ...@@ -672,7 +672,7 @@ class tform {
if($field['formtype'] == 'PASSWORD') { if($field['formtype'] == 'PASSWORD') {
$sql_insert_key .= "`$key`, "; $sql_insert_key .= "`$key`, ";
if($field['encryption'] == 'CRYPT') { if($field['encryption'] == 'CRYPT') {
$sql_insert_val .= "'".crypt($record[$key])."', "; $sql_insert_val .= "encrypt('".$record[$key]."'), ";
} else { } else {
$sql_insert_val .= "md5('".$record[$key]."'), "; $sql_insert_val .= "md5('".$record[$key]."'), ";
} }
...@@ -690,7 +690,7 @@ class tform { ...@@ -690,7 +690,7 @@ class tform {
} else { } else {
if($field['formtype'] == 'PASSWORD') { if($field['formtype'] == 'PASSWORD') {
if($field['encryption'] == 'CRYPT') { if($field['encryption'] == 'CRYPT') {
$sql_update .= "`$key` = '".crypt($record[$key])."', "; $sql_update .= "`$key` = encrypt('".$record[$key]."'), ";
} else { } else {
$sql_update .= "`$key` = md5('".$record[$key]."'), "; $sql_update .= "`$key` = md5('".$record[$key]."'), ";
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment