Log message #4181213

# At Username Text
# 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.
# Mar 28th 2019, 09:22 maymeow @dereuromark in old she'll you can run other shell commands with dispatchShell
# Mar 28th 2019, 09:20 dereuromark maymeow: what do yo mean?
# Mar 28th 2019, 09:19 anupgkale @neon1024 i figured it out. My cakephp 3.6 didnot have curl adapter. I updated cakephp to latest got curl adapter and now the world is full of sunshine and rainbows :slightly_smiling_face:
# Mar 28th 2019, 09:16 maymeow Can I run migrations or other commands from command ? If yes how?
# Mar 28th 2019, 09:07 neon1024 You can use something like Guzzle instead
# Mar 28th 2019, 09:02 neon1024 @anupgkale I’ve had issues with the Cake http client in the past too
# Mar 28th 2019, 09:01 neon1024 Morning all :wave:
# Mar 28th 2019, 08:49 anupgkale Now to check if I can change the adapter from fopen to curl
# Mar 28th 2019, 08:48 anupgkale so I am getting the 302 found status in the client but not the location that I am getting in the curl headers and for curl to finish the transaction
# Mar 28th 2019, 08:47 anupgkale damn
# Mar 28th 2019, 08:46 anupgkale Cakephp client uses Fopen and not curl
# Mar 28th 2019, 08:28 anupgkale I am not sure how to debug this anymore. Can someone please help me?