edit password

Questionsedit password
Qasim Khan asked 9 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 9 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

1 + 19 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?