Browse Source

Simplify Auth flash to be consistent with default Flash error type.

dereuromark 9 years ago
parent
commit
0aebf8744c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Controller/Component/AuthComponent.php

+ 2 - 2
src/Controller/Component/AuthComponent.php

@@ -473,8 +473,8 @@ class AuthComponent extends Component
         $defaults = [
             'authenticate' => ['Form'],
             'flash' => [
-                'element' => 'default',
-                'key' => 'auth',
+                'element' => 'error',
+                'key' => 'flash',
                 'params' => ['class' => 'error']
             ],
             'loginAction' => [