Log message #4217600

# At Username Text
# Dec 6th 2019, 12:26 neon1024 Ah, back to the idiotic allowEmpty*() ” ```with reversed * conditions instead.```
# Dec 6th 2019, 12:20 neon1024 Guess, I’ll have to pass extra data to hang the validation from, and process the messages manually :thinking_face:
# Dec 6th 2019, 12:12 neon1024 I am unsure how I can spin these off into applying rules to the array values, such as `->hasContract('broadband')->hasExample('broadband')` etc
# Dec 6th 2019, 12:11 slackebot2 <neon1024>
# Dec 6th 2019, 12:11 neon1024 So far I have it wrapped into a single method which farms out validation to abstracted methods, but it means I have one generic validation message for a whole range of validation issues which isn’t great for UX
# Dec 6th 2019, 12:10 neon1024 ..and in other news, I have a field which submits an array, can I validate each array item in it’s own validation method?
# Dec 6th 2019, 12:08 slackebot2 <neon1024>
# Dec 6th 2019, 12:08 neon1024 Anyone else seeing PHP Storm run code inspection for Vue.js on their ctp files?
# Dec 6th 2019, 12:03 neon1024 There is the example application, but it would need upgrading to 4.x
# Dec 6th 2019, 12:02 admad i'll need your help testing it whenever i reach that point
# Dec 6th 2019, 12:00 admad np. been a while i used the plugin myself hence i am a bit rusty about the details, so updating for cake 4 is slow progress :P
# Dec 6th 2019, 11:57 neon1024 Apologies that I never got around to implementing the last features of 2.0
# Dec 6th 2019, 11:57 admad though so :slightly_smiling_face: working on cake4 compatible branch of webservice
# Dec 6th 2019, 11:55 neon1024 Or at least, the ones I’ve worked on are read-only
# Dec 6th 2019, 11:55 neon1024 We only have read-only web services
# Dec 6th 2019, 11:55 neon1024 @admad Nope
# Dec 6th 2019, 11:53 admad @neon1024 have you used `Endpoint::deleteAll()` from the webservice plugin ?
# Dec 6th 2019, 10:59 admad The plugin is for using that db with cake
# Dec 6th 2019, 10:59 admad @latenal sounds like you are not familiar with elastic search https://www.elastic.co/products/elasticsearch
# Dec 6th 2019, 10:56 dereuromark I dont think it should replace it, it should copy it with a denormalized way of data storage to quickly find what one is looking for.
# Dec 6th 2019, 10:56 dereuromark See the contributors or maintainers list.
# Dec 6th 2019, 10:54 latenal @dereuromark This is the one I am talking about
# Dec 6th 2019, 10:52 dereuromark The plugin might shed some light
# Dec 6th 2019, 10:52 dereuromark @latenal Did you check https://github.com/FriendsOfCake/awesome-cakephp ?
# Dec 6th 2019, 10:52 dereuromark :slightly_smiling_face: perfect
# Dec 6th 2019, 10:52 latenal Hi Who has implemented elasticsearch in cakephp? I am reading the official docs, and it seems that it’s replacing the main database: it has own validation rules etc. I see it more like a copy of real data just to search.. Is there a way to configure it so?
# Dec 6th 2019, 10:51 conehead Mark, the check was all I needed. Working fine now. Thanks
# Dec 6th 2019, 10:36 neon1024 Better a minimum than a maximum
# Dec 6th 2019, 10:35 conehead Security rules of a big company. They even want to set it to 30...lol
# Dec 6th 2019, 10:35 neon1024 Denying peoples passwords gets messy quickly
# Dec 6th 2019, 10:35 dereuromark ok^^ sounds a bit dramatic, but all righty
# Dec 6th 2019, 10:34 conehead Yes pretty much want the last 5 passwords to be prevented
# Dec 6th 2019, 10:34 dereuromark if you wanted to disallow all old, you would need to store all old hashes :slightly_smiling_face:
# Dec 6th 2019, 10:33 dereuromark you use the built in password_compare functionality here and easily get a result on that.
# Dec 6th 2019, 10:33 dereuromark if you provide the password from before and it is still hashed in the DB, using it to "fake auth" would return true/false, wouldnt it?
# Dec 6th 2019, 10:32 conehead I will have a look. Thank you once again. Hm what is the built in way of comparing? Was asking recently if it was possible to check passwords and it sounded like the answer was no :)
# Dec 6th 2019, 10:30 dereuromark Most functionality, including my Passwordable https://github.com/dereuromark/cakephp-tools/blob/master/docs/Behavior/Passwordable.md "current" and "allowSame" work this way.
# Dec 6th 2019, 10:29 dereuromark md5 is probably the worst idea after plaintext :slightly_smiling_face: why not using the built in way of comparing it?
# Dec 6th 2019, 10:26 conehead Would it be safe to save an md5 of the password? Or does anyone see any security risks in that?
# Dec 6th 2019, 10:25 conehead Hmm is there a way to check if the password is equals to the last password? Was going to store the last used hashed password. But this differes every time :) I want to prevent the user to reuse passwords
# Dec 6th 2019, 09:45 neon1024 Noel’s way sounds much much more complex