Re: Very strange behaviour of CAKEPHP on login

2011-09-16 Thread Sivaramakrishnan S
hi,
 I added [newly added book] tab for my app, still i need to display one more
tab below this tab, that tab name is [Most popular book].i used the same css
for this tab also, but it's not working for me.it's tab is overlap to the
previous one, any one can help me to fix this


Thanks in advance,
Shiva

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Very strange behaviour of CAKEPHP on login

2011-09-16 Thread WebbedIT
On Sep 16, 9:03 am, Sivaramakrishnan S siva...@nasoindia.com wrote:
 hi,
  I added [newly added book] tab for my app, still i need to display one more
 tab below this tab, that tab name is [Most popular book].i used the same css
 for this tab also, but it's not working for me.it's tab is overlap to the
 previous one, any one can help me to fix this

 Thanks in advance,
 Shiva

@Shiva: How is this linked to the OP?  If you have a new question ask
it in a new thread otherwise it gets very confusing.

@byqsri: Debug is always your friend.  echo debug($this-data); will
show you if the password is hashed, but Teddy is right that you're not
passing $this-data to the login command.

By turning your debug setting to 2 and echoing your $sql_dump you
could have seen something was wrong with the sql call to try and
authenticate the user.

If you were logging in as normal rather than creating a strange action
to do it on your behalf you would have had a form where you were
echoing the Auth error and it would have informed you there was no
username or password.

I reccomend you also install the excellent DebugKit plugin as it
beings the SQL, Request, Session and other useful data into one handy
neat panel so you can debug such issues yourself.

HTH, Paul
@phpMagpie

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Very strange behaviour of CAKEPHP on login

2011-09-16 Thread Jeremy Burns | Class Outfit
It's also a CSS problem, not a Cake problem!

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 16 Sep 2011, at 10:13, WebbedIT wrote:

 On Sep 16, 9:03 am, Sivaramakrishnan S siva...@nasoindia.com wrote:
 hi,
  I added [newly added book] tab for my app, still i need to display one more
 tab below this tab, that tab name is [Most popular book].i used the same css
 for this tab also, but it's not working for me.it's tab is overlap to the
 previous one, any one can help me to fix this
 
 Thanks in advance,
 Shiva
 
 @Shiva: How is this linked to the OP?  If you have a new question ask
 it in a new thread otherwise it gets very confusing.
 
 @byqsri: Debug is always your friend.  echo debug($this-data); will
 show you if the password is hashed, but Teddy is right that you're not
 passing $this-data to the login command.
 
 By turning your debug setting to 2 and echoing your $sql_dump you
 could have seen something was wrong with the sql call to try and
 authenticate the user.
 
 If you were logging in as normal rather than creating a strange action
 to do it on your behalf you would have had a form where you were
 echoing the Auth error and it would have informed you there was no
 username or password.
 
 I reccomend you also install the excellent DebugKit plugin as it
 beings the SQL, Request, Session and other useful data into one handy
 neat panel so you can debug such issues yourself.
 
 HTH, Paul
 @phpMagpie
 
 -- 
 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
 cake-php+unsubscr...@googlegroups.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Very strange behaviour of CAKEPHP on login

2011-09-15 Thread byqsri
Hi
I have my CAKEPHP application ... I have create a demo user and an
action in users controller called demo to allow access like demo
user:

function demo {
$this-Auth-logout();
$this-data[$this-Auth-fields['username']] = 'demo';
$this-data[$this-Auth-fields['password']] = $this-Auth-
password('demo');
if (!($this-Auth-login($data))) {
$this-redirect($this-Auth-loginAction);
} else {
$this-Session-delete('Auth.redirect');
//print_r($this-Session-read('Auth.User.username'));die();
$this-Auth-loginRedirect = array('admin' = 
false,'controller' =
'demo', 'action' = 'index');
}
}

Now in a page of another site I have add a link that redirect to  /
users/demo of my cake application.

But If I click on this link I don't login in cakephp application and I
redirect to login page instead that on /demo/index

But If i uncomment the line print_r($this-Session-
read('Auth.User.username'));die(); and the I reclick on link I can
see that it show the correct username demo.

Can someone help me about this problem?

Many Thanks

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Very strange behaviour of CAKEPHP on login

2011-09-15 Thread Janos Csikos
Hi,

not sure, but it looks like for me if the password ($this-Auth-
password('demo')) is already encoded, and when it checks then encode it again.

Is that true?

Thanks,
Janos

On Thu, Sep 15, 2011 at 12:11 PM, byqsri marco.rizze...@gmail.com wrote:
 Hi
 I have my CAKEPHP application ... I have create a demo user and an
 action in users controller called demo to allow access like demo
 user:

 function demo {
        $this-Auth-logout();
        $this-data[$this-Auth-fields['username']] = 'demo';
        $this-data[$this-Auth-fields['password']] = $this-Auth-
password('demo');
        if (!($this-Auth-login($data))) {
                $this-redirect($this-Auth-loginAction);
        } else {
                $this-Session-delete('Auth.redirect');
                //print_r($this-Session-read('Auth.User.username'));die();
                $this-Auth-loginRedirect = array('admin' = 
 false,'controller' =
 'demo', 'action' = 'index');
        }
 }

 Now in a page of another site I have add a link that redirect to  /
 users/demo of my cake application.

 But If I click on this link I don't login in cakephp application and I
 redirect to login page instead that on /demo/index

 But If i uncomment the line print_r($this-Session-
read('Auth.User.username'));die(); and the I reclick on link I can
 see that it show the correct username demo.

 Can someone help me about this problem?

 Many Thanks

 --
 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
 cake-php+unsubscr...@googlegroups.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Very strange behaviour of CAKEPHP on login

2011-09-15 Thread Teddy Zeenny
True about the password.
It could also be that instead of $this-Auth-login($data)
you should write  $this-Auth-login($this-data)

On Thu, Sep 15, 2011 at 5:48 PM, Janos Csikos ja...@csikos.co.uk wrote:

 Hi,

 not sure, but it looks like for me if the password ($this-Auth-
 password('demo')) is already encoded, and when it checks then encode it
 again.

 Is that true?

 Thanks,
 Janos

 On Thu, Sep 15, 2011 at 12:11 PM, byqsri marco.rizze...@gmail.com wrote:
  Hi
  I have my CAKEPHP application ... I have create a demo user and an
  action in users controller called demo to allow access like demo
  user:
 
  function demo {
 $this-Auth-logout();
 $this-data[$this-Auth-fields['username']] = 'demo';
 $this-data[$this-Auth-fields['password']] = $this-Auth-
 password('demo');
 if (!($this-Auth-login($data))) {
 $this-redirect($this-Auth-loginAction);
 } else {
 $this-Session-delete('Auth.redirect');
 
  //print_r($this-Session-read('Auth.User.username'));die();
 $this-Auth-loginRedirect = array('admin' =
 false,'controller' =
  'demo', 'action' = 'index');
 }
  }
 
  Now in a page of another site I have add a link that redirect to  /
  users/demo of my cake application.
 
  But If I click on this link I don't login in cakephp application and I
  redirect to login page instead that on /demo/index
 
  But If i uncomment the line print_r($this-Session-
 read('Auth.User.username'));die(); and the I reclick on link I can
  see that it show the correct username demo.
 
  Can someone help me about this problem?
 
  Many Thanks
 
  --
  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
  cake-php+unsubscr...@googlegroups.com 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
 cake-php+unsubscr...@googlegroups.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php