我DebugKit使用以下方法下载了插件:
php composer.phar require --dev cakephp/debug_kit "~3.0"
Run Code Online (Sandbox Code Playgroud)
但它仍然显示警告error.log并且DebugKit不起作用:
警告:未启用 DebugKit。您需要安装 pdo_sqlite,或定义“debug_kit”连接名称
那么如何定义debug_kit连接名称app.php以及如何启用调试工具包??
如何在编辑表单中显示解密的用户密码?
我使用DefaultPasswordHasher了Hashing密码,同时登记users使用此:
protected function _setPassword($password) {
return (new DefaultPasswordHasher)->hash($password);
}
Run Code Online (Sandbox Code Playgroud)
它运作良好,密码加密......
但是,当我用user table在view page和edit page它显示了加密密码.那么如何在控制器中解密密码CakePHP 3.x呢?在编辑页面时它还解密并存储在数据库中?