Cakephp 2.0 Authentication using email instead of username

后端 未结 2 1401
北荒
北荒 2021-01-12 19:44

In my view I have:

Form->create(\'User\', array(\"controller\" => \"Users\", \"action\" => \"login\", \"method\" => \"pos         


        
2条回答
  •  清歌不尽
    2021-01-12 20:02

    Final solution for my problem. Thank you.

    I had a problem with userModel and I write this:

    'Auth' => array(
             'userModel' => 'Member'
          )
    

    instead of this:

    'Auth' => array(
        'authenticate' => array(
            'Form' => array(
                'userModel' => 'Member'
            )
        )
    )
    

提交回复
热议问题