dAuth v0.3 componentthe component for dAuth v0.3http://bakery.cakephp.org/Language supporthttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea113-19e0-4481-b39b-476482f0cb67#comment4caea113-19e0-4481-b39b-476482f0cb67I dont know if this is the right place for this info but... I've made some changes to the dauth component to add multi lingual support. The modified version have minor changes in the dauthcomponent, views and the users_controller. A new component to handle language sessions and language files are added. The language component is in alpha version but may be used to add multi lingual support to any controller/component/view. Please direct me to the right place to publish my stuff. For now You can get this version from http://www.lagerbjelke.se/app_moddauth.zip In this example set the country code in the startupfunction of dauth ($this->cccLang->setLanguage('se');) Open and translate the language files in vendors/language, follow the naming convention from the swedish and english file.Tue, 24 Jul 2007 13:46:03 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea113-19e0-4481-b39b-476482f0cb67#comment4caea113-19e0-4481-b39b-476482f0cb67Rehttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-50cc-44b2-8812-432982f0cb67#comment4caea107-50cc-44b2-8812-432982f0cb67Yes, they are here: http://bakery.cakephp.org/articles/view/152 for more information, check http://bakery.cakephp.org/articles/view/147 greets, DieterThu, 21 Dec 2006 15:34:57 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-50cc-44b2-8812-432982f0cb67#comment4caea107-50cc-44b2-8812-432982f0cb67viewhttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-2d04-4445-a4bd-428682f0cb67#comment4caea107-2d04-4445-a4bd-428682f0cb67Hello, Do you have the controller/view setup for this to see how to interract with the component ? Thanks.Thu, 21 Dec 2006 15:00:47 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-2d04-4445-a4bd-428682f0cb67#comment4caea107-2d04-4445-a4bd-428682f0cb67Updated to v0.3http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-9f80-4555-94ee-485a82f0cb67#comment4caea107-9f80-4555-94ee-485a82f0cb67Fixed all reported bugs and added some features. Have fun with it :-) DieterFri, 15 Dec 2006 10:01:14 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-9f80-4555-94ee-485a82f0cb67#comment4caea107-9f80-4555-94ee-485a82f0cb67fixedhttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-8810-4ac1-b77a-421082f0cb67#comment4caea107-8810-4ac1-b77a-421082f0cb67djeez.. can't believe i actually wrote that :D thanks for the spotting! it should really be % instead of / will include this in the next version, and fix the code if the bakery lets me ;-) DieterWed, 13 Dec 2006 14:05:55 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-8810-4ac1-b77a-421082f0cb67#comment4caea107-8810-4ac1-b77a-421082f0cb67Bugfixhttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-4250-4af8-b62d-419c82f0cb67#comment4caea107-4250-4af8-b62d-419c82f0cb67Change <code> function _cleanUpAttempts() { $time = time(); if(!($time/500)) // do this about once in 500 times. { $this->controller->LoginAttempt->cleanUpExpired($time - $this->hammerRatio['seconds'] - 1); } } </code> to <code> function _cleanUpAttempts() { $time = time(); if(!($time%500)) // do this about once in 500 times. { $this->controller->LoginAttempt->cleanUpExpired($time - $this->hammerRatio['seconds'] - 1); } } </code> The previous one is never been executed.Tue, 12 Dec 2006 11:06:59 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea107-4250-4af8-b62d-419c82f0cb67#comment4caea107-4250-4af8-b62d-419c82f0cb67Another bugfix for php4 usershttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-9884-4882-8c44-439082f0cb67#comment4caea106-9884-4882-8c44-439082f0cb67Php4 users should change this call: $hosts = $this->controller->Host->findAllByIpAdress($ip); to: $hosts = $this->controller->Host->findAllByIp_adress($ip); More information: http://groups.google.com/group/cake-php/browse_thread/thread/859d121726ece828/b062a3db8c435c32 https://trac.cakephp.org/ticket/1567Sun, 03 Dec 2006 06:29:23 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-9884-4882-8c44-439082f0cb67#comment4caea106-9884-4882-8c44-439082f0cb67Addon if you want userdata in your presentation layerhttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-079c-4565-941a-48fd82f0cb67#comment4caea106-079c-4565-941a-48fd82f0cb67Here is a small fix that i will probably incorporate in future releases. (but in a more tidy fashion, using a $setDataInView boolean) if you want userdata from the session available in your presentation layer (which is very common in most applications) add this at the end of the startup function of the dAuthComponent: $User = $this->Session->read('User'); $this->controller->set('User',$User); Then you could put something like this in any of your views, layouts or elements: [view] <?php if($User) echo ('Logged in as '.$User['username']); else echo 'not logged in'; ?> [/view] Sun, 26 Nov 2006 09:29:36 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-079c-4565-941a-48fd82f0cb67#comment4caea106-079c-4565-941a-48fd82f0cb67Changed code to fix bughttp://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-a034-4cc0-afe0-4a0a82f0cb67#comment4caea106-a034-4cc0-afe0-4a0a82f0cb67in the startup function, i changed $this->controller = $controller; to $this->controller = &$controller; The original line worked perfectly for php5 users, but not for php4 users. (sorry couldn't test that ;-) The new line works for both! :)Tue, 21 Nov 2006 06:22:38 +0000http://bakery.cakephp.org/articles/Dieter_be/2006/11/15/dauth-v0-3-component/comment:4caea106-a034-4cc0-afe0-4a0a82f0cb67#comment4caea106-a034-4cc0-afe0-4a0a82f0cb67