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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to