edit password

Questionsedit password
Qasim Khan asked 5 years ago

is there any way we can edit password (password field in DB) and save it with password_hash(). currently it is saving password in plain text.

1 Answers
Abu Ghufran answered 5 years ago

Hello,

You can implement it using on_insert event callback. Custom events are supported in licensed version.

$e["on_insert"] = array("add_client", null, true);
$grid->set_events($e);
function add_client($data)
{
$data["params"]["password"] = md5($data["params"]["password"]);
}

Your Answer

13 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!