Hey guys!
Unfortunately my mutators, especially “_setPassword”, wont work on my remote server. The thing is, it works fine on my local machine (docker image).
It is as simple as written in the “Auth” Tutorial here: https://book.cakephp.org/4/en/tutorials-and-examples/cms/authentication.html
I have an entity called “User” which has a field “password”. This field should always get encrypted while setting. Therefore I’ve created this mutator:
protected function _setPassword(string $password) {
$hasher = new DefaultPasswordHasher();
return $hasher->hash($password);
}
Unfortunately it won’t get encrypted on my remote server (ubuntu 18).
Does anyone have an idea whats going on there?
Kind regards,