No that's not the problem. The Auth component is enabled. Please what's the problem? I'm waiting two days and can't keep working with CakePHP...
On Aug 16, 9:37 pm, Zippoxer <[email protected]> wrote: > Ohh, I think that's the problem. It looks enabled, but when I don't > allow access to "login" action it still allows. > Here's the full app_controller.php code: > > class AppController extends Controller { > > var $components = array('Auth'); > > function beforeFilter() { > parent::beforeFilter(); > $this->helpers[] = 'Menu'; > $this->Auth->userModel = 'Player'; > $this->Auth->allow('login', 'register'); > $this->Auth->fields = array( > 'username' => 'name', > 'password' => 'password' > ); > } > > } > > On Aug 16, 9:13 pm, Miles J <[email protected]> wrote: > > > > > Do you have the Auth component enabled? > > > On Aug 16, 2:04 am, Zippoxer <[email protected]> wrote: > > > > This is the form code in the view: > > > <?php > > > echo $form->create('Player'); > > > echo $form->input('name', array('label' => 'Name')); > > > echo $form->input('password', array('label' => 'Password')); > > > echo $form->end('Login'); > > > ?> > > > > And in the controller I just do: > > > print_r($this->data); > > > > Then I see an array with the username and password, but the password > > > is always empty. > > > > On Aug 16, 6:16 am, Sam <[email protected]> wrote: > > > > > We need more info... can you paste your view, and perhaps your > > > > controller action? > > > > > On Aug 15, 1:24 pm, Zippoxer <[email protected]> wrote: > > > > > > I've created a simple authentication form with username and password > > > > > input fields. > > > > > The problem is that the password is always empty through $this->data > > > > > in the controller, but username is not empty. > > > > > What's the problem? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
