Re: Auth Error message
I am also having the same problem. Also, when I enable this Authed component it stops public access for pages in $this->Auth->allowedActions in my users controller thanks -- View this message in context: http://cakephp.1045679.n5.nabble.com/Auth-Error-message-tp1255857p4652412.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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: auth error message make extra space under error message - how can I make it small??
Use firebug in firefox to see which CSS applies to your element and which overrides your CSS! Enjoy, John On Jan 20, 8:26 pm, leafchild wrote: > I set auth to display my login error message but when it display > > "Login failed. Invalid username > or password." > > above code create extra extra space below and push other contents to > down and mess up my layout. > > so it will look like this > > -- > Login failed. Invalid username or password. > > If you for get your password > > = > ('If you for get your password' should be right below the error > message, 'Login failed. Invalid username or password.') > > I tried to set CSS(margin:0px; padding:0px;) but it's not working at > all. > > How can I make it set this message to fit my layout?? > > Thanks 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 cake-php@googlegroups.com 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?hl=en
auth error message make extra space under error message - how can I make it small??
I set auth to display my login error message but when it display "Login failed. Invalid username or password." above code create extra extra space below and push other contents to down and mess up my layout. so it will look like this -- Login failed. Invalid username or password. If you for get your password = ('If you for get your password' should be right below the error message, 'Login failed. Invalid username or password.') I tried to set CSS(margin:0px; padding:0px;) but it's not working at all. How can I make it set this message to fit my layout?? Thanks 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 cake-php@googlegroups.com 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?hl=en
Auth Error message
I am trying to get a custom error message for a user logging in who has not clicked the email confirmation link So it will say please confirm your email blah blah blah.. I was trying to use http://bakery.cakephp.org/articles/view/authed-adds-rule-based-userscope-to- auth but all it ended up doing was changing the loginError or authError nothing came from the unconfirmed user trying to login. Can someone point me in the right direction. var $components = array('Auth', 'Acl', 'RequestHandler', 'Authed'); function beforeFilter() { $this->Auth->userScope = array('User.confirmed' => '1'); // these two we are familiar with $this->Authed->loginError = __("Wrong password / username. Please try again.", true); $this->Authed->authError = __("Sorry, you are not authorized. Please log in first.", true); // now this one is new $this->Authed->userScopeRules = array( 'User.confirmed' => array( 'expected' => 1, 'message' => __("Your account is not active yet. Click the Link in our Mail.", true) ) ); Thanks Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~--~~~~--~~--~--~---