Hello everyone,
First, I would like to apologize if my english isn't very well. Yes,
I'm french... Did you recognize my accent?
But i can assure you that I'm improving since i am in Australia. Ok,
sorry I'm off topic, it was just to present myself to the community.
So, I'm using obAuth component with CakePHP 1.18...
My issue is obAuth redirect me automatically to the login page even if
the login function succeeded.
Maybe I should present my application.
The user is directly redirect to a login form (there'll be no
frontend). If the login succeed, it'll be redirect to the page /home
which is a route to /users/home
------------ UsersController
function home()
{
$this->obAuth->lock(); //all the users can go here if they are
registered [...]
------------
obAuth redirected me to the login page each time. The only way I found
to go on the page is to comment the line with the function lock(), but
in this case why using obAuth.
If anyone have at least an idea, I will be grateful. And for those who
have the answer, and think "Where is the problem?", yes I'm a newbie!
And by the way, do you know how can i use the informations stored by
obAuth in the view?
I did this and it's worked, but i'm not sure about it:
------------ UsersController
function home() {
$this->set('user', $this->Session->read($this->obAuth->sesskey));
------------
------------- index.thtml
<strong><?php echo $user['User']['username']; ?></strong>
------------
Thank you and have a nice day.
See ya guys.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---