http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html
-- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/26 @dariobarila <[email protected]> > Hi all, > I'm developing a bookmarklet for social shopping, I need to let user > to authenticate trough my bookmarklet via ajax, my idea is to send to > my cakeapp username & password and with a cookie on the browser store > a session after cake has authenticated the user. > > I've tried to grab username & psw trough $this->request->query and > then I set $this->request->data["User"]; > Next I call $this->Auth->login($this->data["User"]) hoping that cake > will authenticate the user and return me the user model with ID and > other fields... > > But it's not working... > > The cakebook is not helping me... :( > > I'm a frontend developer, but a this time I need some backend and I > love Cake. > > Any idea to help me? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
