Log message #4160487

# At Username Text
# Jul 19th 2018, 10:36 dereuromark We will always need most of it, I am curious however where we can cut down on it using a different resolving strategy in core :slightly_smiling_face:
# Jul 19th 2018, 10:20 neon1024 @dereuromark Will all the docblocks that the IdeHelper adds be needed still when Cake 4 implements all the correct type hinting? I’m guessing that some magic access stuff will still need to be included right?
# Jul 19th 2018, 10:09 dereuromark @admad Small IdeHelper greetz from me: https://github.com/ADmad/CakePHP-HybridAuth/pull/121 thanks!
# Jul 19th 2018, 10:01 josbeir ah nm you already found it :slightly_smiling_face:
# Jul 19th 2018, 10:00 josbeir did you pass 'associated' => [ 'Table' ] when saving?
# Jul 19th 2018, 09:50 neon1024 :rubberduck:
# Jul 19th 2018, 09:50 neon1024 Yes, yes I do
# Jul 19th 2018, 09:49 neon1024 It’s an association though, do I need to mark the parent entity dirty in order for the associations to be persisted?
# Jul 19th 2018, 09:48 neon1024 I have no validation errors, my data is marshalled correctly, my fields are marked dirty, yet no changes are persisted! Any ideas?
# Jul 19th 2018, 09:45 blancessanchez30 i now understand, thank you :slightly_smiling_face:
# Jul 19th 2018, 09:45 blancessanchez30 for creating a cms blog
# Jul 19th 2018, 09:36 dereuromark You should even in 2.x already be using the 3.x stuff using shimming^^ ( https://github.com/dereuromark/cakephp-shim/blob/2.x/docs/Auth.md )
# Jul 19th 2018, 09:35 dereuromark Ces: what do you need it for?
# Jul 19th 2018, 09:34 neon1024 Nothing to stop you writing a hasher for Cake 2 which uses `password_hash()` though I guess
# Jul 19th 2018, 09:33 neon1024 Perhaps this is helpful?
# Jul 19th 2018, 09:33 neon1024 https://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords
# Jul 19th 2018, 09:32 neon1024 ..and for that reason Cyril, I’m out.
# Jul 19th 2018, 09:32 neon1024 Cake 2?
# Jul 19th 2018, 09:32 josbeir $this->Auth->password() or something
# Jul 19th 2018, 09:32 neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#hashing-passwords
# Jul 19th 2018, 09:32 josbeir ah
# Jul 19th 2018, 09:32 blancessanchez30 using cakephp 2
# Jul 19th 2018, 09:32 josbeir $password = (new new DefaultPasswordHasher)->hash($password) is the prefered way.
# Jul 19th 2018, 09:32 neon1024 https://www.phptherightway.com/#password_hashing
# Jul 19th 2018, 09:31 neon1024 https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/authentication.html#adding-password-hashing
# Jul 19th 2018, 09:31 blancessanchez30 now, im curious of what will be the best method of hashing password
# Jul 19th 2018, 09:31 blancessanchez30 and watched vid online that they've used authcomponent::password
# Jul 19th 2018, 09:31 blancessanchez30 scurity hashing
# Jul 19th 2018, 09:31 neon1024 https://github.com/cakephp/cakephp/blob/master/src/Auth/DefaultPasswordHasher.php#L47
# Jul 19th 2018, 09:31 blancessanchez30 i followed tutorial on cookbook and taught me that security is an option
# Jul 19th 2018, 09:30 neon1024 @blancessanchez30 For generating passwords, use phps `password_hash()` which is what the core uses
# Jul 19th 2018, 09:27 blancessanchez30 in passwords
# Jul 19th 2018, 09:27 Martin` in a shell you can have multiple commands, but in a command, I guess it is only one? :P
# Jul 19th 2018, 09:27 blancessanchez30 which is better authcomponent or security hash
# Jul 19th 2018, 08:50 unclezoot morning, how do you use aliases within your shells? I'm getting conflicts shown ShellDispatcher::addShortPluginAliases() atm
# Jul 19th 2018, 08:14 saeideng composer.json added
# Jul 19th 2018, 08:13 saeideng `/app` does not changed from 2.6 except 1 or 2 line
# Jul 19th 2018, 08:11 saeideng aha
# Jul 19th 2018, 08:11 thuyhyvg It depends on my client.
# Jul 19th 2018, 08:10 saeideng why?
# Jul 19th 2018, 08:10 thuyhyvg yes, but I don't use version 3.*