Welcome to the Cookbook

loading...

5.2.6.7 loginError

Change the default error message displayed when someone does not successfully log in.

<?php
    $this->Auth->loginError = "No, you fool!  That's not the right password!";
?>
  1. <?php
  2. $this->Auth->loginError = "No, you fool! That's not the right password!";
  3. ?>