Cancel Update Specific Field
Cancel Update Specific Field
modyking55
Posts: 14Questions: 7Answers: 0
$field->setFormatter(function ( $val, $data) use ($field) {
if($val != '*******')
{
$password = $val;
$expensiveHash = password_hash($password, PASSWORD_DEFAULT);
return $expensiveHash;
}
else {
** $field->set(false);**
return "";
}
});
How To Make That Work
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hey modyking55,
not sure what the question is but I figure you want to do something with passwords ... This works:
The user can change the password and also needs to repeat the new password. We don't return the password from the server for safety reasons.
If the user doesn't enter a new password we make sure it doesn't get updated. Take a look at the PHP server events please: https://editor.datatables.net/manual/php/events
and my little validator ... whatever you need help yourself:
Maybe you would like to use Markdown in your posts .. very easy and all you really need is to use the triple back ticks as mentioned below ...
Thanks that what i am looking for