Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-02-14 Thread tech_me
over through the ctp way from source code those generated at runtime, in which are `data[User][email]` and `data[User][password]`. So, I change my attribute values in the html file to the `data[User][]` format, works like a charm \^o^/ Thanks for you all help. Best regards, tech_me. On

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-02-11 Thread tech_me
'password' => 'password'))), ... ` is there anything incorrect? Thank you, tech_me On Friday, January 16, 2015 at 2:48:09 AM UTC+9, John Andersen wrote: > > You have a users table with two records, where the one with id = 10

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-15 Thread tech_me
e tested just by searching but not creating new record for those purposes. Thanks, tech_me On Thursday, January 15, 2015 at 5:15:16 AM UTC+9, John Andersen wrote: > > Use the password hasher to hash your password, then save it instead of > "123" and it should work. > >

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-11 Thread tech_me
ality? Not want to do the creating user process before other implementations. Thank you, tech_me On Tuesday, January 6, 2015 at 9:11:07 AM UTC+9, Joe T. wrote: > > >> Is that the actual data in `users`, or just simplified for example? > Just want to clarify. Manually adding reco

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-03 Thread tech_me
n my table. Maybe this is the problem...I'll check it. > Obviously, adapt the CTP form to your TAL needs. What this means? Are you talking about the usage in my controller but not html(TAL) files for login? Regards, tech_me On Tuesday, December 23, 2014 11:35:40 PM UTC+9, Joe T. wrote:

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-22 Thread tech_me
By the way, I have a table `users` in my db, which have 2 records. id, email, password 1001, abc@com, 123 1002, abc@org, 456 When I input email and password on the login form, it fails at `if ($this->Auth->login())` On Tuesday, December 23, 2014 10:39:39 AM UTC+9, tech_me wrote: >

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-22 Thread tech_me
equest->is('post')) { if ($this->Auth->login()) { return $this->redirect($this->Auth->redirect()); } else { echo ('failed'); // Always come here... } } } public function

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-20 Thread tech_me
g else? > > Suggest that you at least create the users table and add one user, so that > CakePHP has something to work with. > > Enjoy, John > > On Wednesday, 17 December 2014 14:14:43 UTC+2, tech_me wrote: >> >> I posted to SO several days ago, but no expected repl

CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-17 Thread tech_me
I posted to SO several days ago, but no expected replies. http://stackoverflow.com/q/27403391 I am now using PHPTAL which use html instead of ctp files. Is there anyone who use the html files to cooperate with Cake's authentication? Thanks. -- Like Us on FaceBook https://