# |
Mar 28th 2019, 13:20 |
JVieira |
hello |
# |
Mar 28th 2019, 12:37 |
admad |
crickets |
# |
Mar 28th 2019, 12:24 |
neon1024 |
`composer create-project cakephp/app ExampleCakeProject`? |
# |
Mar 28th 2019, 12:23 |
neon1024 |
How did you create your ‘clean installation’? |
# |
Mar 28th 2019, 12:12 |
david |
Create the class DebugKitController below in file: src\Controller\DebugKitController.php |
# |
Mar 28th 2019, 12:12 |
david |
why does a clean installation of CakePHP fails with debug kit? |
# |
Mar 28th 2019, 11:41 |
joopm |
it will create the skeleton |
# |
Mar 28th 2019, 11:41 |
joopm |
cake bake plugin |
# |
Mar 28th 2019, 11:41 |
joopm |
with bake |
# |
Mar 28th 2019, 11:37 |
rohit.onus |
Hello How can i create custom plugin in Version 3.7 ? |
# |
Mar 28th 2019, 10:43 |
joopm |
i thought it Security::hash use the Default hasher |
# |
Mar 28th 2019, 10:42 |
joopm |
Security::hash('password') and $hasher->hash('password') does not return the same! |
# |
Mar 28th 2019, 10:42 |
joopm |
Security::hash('password') and $hasher->hash('Jelszo1234') |
# |
Mar 28th 2019, 10:41 |
joopm |
the issue was with : |
# |
Mar 28th 2019, 10:41 |
joopm |
thank you! found the solution |
# |
Mar 28th 2019, 10:35 |
neon1024 |
Or using one of the built in Hashers, like in the tutorial https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/authentication.html#adding-password-hashing |
# |
Mar 28th 2019, 10:34 |
neon1024 |
I would recommend using `password_hash()` instead of `Security::hash()` |
# |
Mar 28th 2019, 10:31 |
joopm |
so what i see forst parameter is the user given, second parameter is the hash value(in cake read from db) |
# |
Mar 28th 2019, 10:29 |
joopm |
thank you for your help,time and effort |
# |
Mar 28th 2019, 10:29 |
joopm |
i thinking the two function does not use the same hash algorithm |
# |
Mar 28th 2019, 10:28 |
neon1024 |
Have a look at the parameters |
# |
Mar 28th 2019, 10:27 |
neon1024 |
Have a look at this :point_right: https://www.php.net/manual/en/function.password-verify.php |
# |
Mar 28th 2019, 10:27 |
neon1024 |
Well you’ve got the usage wrong, so that’s why |
# |
Mar 28th 2019, 10:26 |
joopm |
wtf? |
# |
Mar 28th 2019, 10:25 |
joopm |
return false for me |
# |
Mar 28th 2019, 10:25 |
joopm |
$hashed = Security::hash('password'); and than password_verify('password',$hashed) |
# |
Mar 28th 2019, 10:25 |
joopm |
but in short : Security::hash('password'); |
# |
Mar 28th 2019, 10:24 |
joopm |
thank you |
# |
Mar 28th 2019, 10:24 |
joopm |
:) |
# |
Mar 28th 2019, 10:22 |
neon1024 |
Write a unit test for it :slightly_smiling_face: |
# |
Mar 28th 2019, 10:18 |
joopm |
how can i debug why password_verify allways return false? |
# |
Mar 28th 2019, 10:11 |
joopm |
do you have any idea? |
# |
Mar 28th 2019, 10:10 |
joopm |
so ia have no ide why |
# |
Mar 28th 2019, 10:10 |
joopm |
i made a hash generate to check it but even with the hash result and with the original value password_verify function return false |
# |
Mar 28th 2019, 10:10 |
joopm |
i have an ssue that password_verify function allways return false |
# |
Mar 28th 2019, 10:09 |
joopm |
have a great day to all community member |
# |
Mar 28th 2019, 09:41 |
maymeow |
even symfony console (used in cakephp) can call another command so why not cake? https://symfony.com/doc/current/console/calling_commands.html |
# |
Mar 28th 2019, 09:32 |
maymeow |
yes and for windows i need bat etc etc... or perhaps i can make exe file |
# |
Mar 28th 2019, 09:29 |
neon1024 |
Create `runstuff.sh` |
# |
Mar 28th 2019, 09:27 |
maymeow |
want to make command which run all migrations (for plugin to) and other needed functions and i dont want to run each command separatelly |
# |
Mar 28th 2019, 09:24 |
dereuromark |
thats usually a code smell, you usually want to properly service class this, e.g. some Lib, or into Tasks if you want to - and just make it for reuse this way from different endpoints. |