# |
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 |
# |
Dec 6th 2019, 09:45 |
neon1024 |
All I did was built a Vue.js application on top of a Cake api |
# |
Dec 6th 2019, 09:30 |
alexdd55976 |
did you guys do a stream on a collection somewhere |
# |
Dec 6th 2019, 09:27 |
noel |
@alex no, I made it up as far as I went. What I can tell you is that my general approach was to create a bake theme, with my own FormHelper and associated form helper templates and widgets and then a layout that creates the Vue object and attaches it to the HTML. Then I used `->fetch` to bring in various script blocks into that layout and the blocks were defined in the twig templates that are part of the bake theme. |
# |
Dec 6th 2019, 09:22 |
neon1024 |
https://docs.google.com/presentation/d/1bgilFVNRtvhp9KyCLVWMMKtlS-Q39rx07AXCOpf67G4/edit?usp=sharing |
# |
Dec 6th 2019, 09:22 |
neon1024 |
I noted some learning resources in my Cakefest slides |
# |
Dec 6th 2019, 09:16 |
alexdd55976 |
or sample code? |
# |
Dec 6th 2019, 09:16 |
alexdd55976 |
@neon1024 @noel any tutorials on the nodejs, vue, mongodb you can recommend? |
# |
Dec 6th 2019, 09:14 |
birdy247 |
@challgren I ended up just calling the job directly from the test |
# |
Dec 6th 2019, 09:09 |
alexdd55976 |
morning |
# |
Dec 6th 2019, 09:05 |
challgren |
Like the job running? |
# |
Dec 6th 2019, 09:02 |
birdy247 |
Has anyone else done this? |
# |
Dec 6th 2019, 09:01 |
birdy247 |
We are trying to unit test a job |
# |
Dec 6th 2019, 09:01 |
birdy247 |
I am use cake quesadilla in one of our project |
# |
Dec 6th 2019, 08:49 |
slackebot2 |
'logoutRedirect' => [ 'controller' => 'Pages', 'action' => 'display', 'home' ] ]); } public function beforeFilter(Event $event) { $this->Auth->allow(['index', 'view', 'display']); } //... }``` I solved thanks to your advice |
# |
Dec 6th 2019, 08:49 |
gianmarxgagliardi |
```// src/Controller/AppController.php namespace App\Controller; use Cake\Controller\Controller; use Cake\Event\Event; class AppController extends Controller { //... public function initialize() { $this->loadComponent('Flash'); $this->loadComponent('Auth', [ 'loginRedirect' => [ 'controller' => 'Articles', 'action' => 'index' ], |
# |
Dec 6th 2019, 08:47 |
gianmarxgagliardi |
morning |
# |
Dec 6th 2019, 08:06 |
rk.thedigifrog |
solution to get quick result in query builder inner join cakephp3. |
# |
Dec 6th 2019, 02:02 |
cnizzardini |
On Cake 3.7.9 anyone else notice this, perhaps after some recent package updates on ubuntu 18? |
# |
Dec 6th 2019, 02:01 |
cnizzardini |
Just started getting this: Warning (512): Cache engine Cake\Cache\Engine\RedisEngine is not properly configured. [CORE/src/Cache/Cache.php, line 179] |
# |
Dec 6th 2019, 00:24 |
nuzulfikrie |
if i go back to cake default template, it will behave as per configured |
# |
Dec 6th 2019, 00:24 |
nuzulfikrie |
Hi @jotpe. @challgren , that is precisely what i did, but something broke it up. |
# |
Dec 6th 2019, 00:15 |
challgren |
should be `/src/Template/CakeDC/Users/User/action.ctp` for example |
# |
Dec 6th 2019, 00:13 |
jotpe |
@nuzulfikrie If you want to override a Template by a Plugin you need to place the template files in your plugin folder (eg. `plugins/YOURPLUGIN/src/Template/x/x/file.ctp`) |