Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

1.12 Gii Not Allowing Login

$
0
0
Tested in bare webapp one with 1.11 and one with 1.12. Worked in 1.11, doesn't work in 1.12

Problem:
Entering password does not log into gii


Set gii password in config/main.php

   'modules' => array(
      'gii' => array(
         'class' => 'system.gii.GiiModule',
         'password' => '123',
      // If removed, Gii defaults to localhost only. Edit carefully to taste.
      'ipFilters'=>array('127.0.0.1','::1'),
      ),
   ),



Hack Solution that allows it to work:
in the bootstrap index.php add the line
session_name ("GII_HACK");  // name your session whatever you want



This was initially reported by a fellow developer in my office on his Windows7 machine he told me about the session_name() solution/hack
I then reproduced the problem on my mac mini Mountain Lion and then tested 1.11 and 1.12 side by side.

Is this a bug? I searched the changelog https://github.com/yiisoft/yii/blob/master/CHANGELOG and googled for other's with this problem and didn't find it.

Hope it's not a dup, but I would be interested if others have encountered this.

Viewing all articles
Browse latest Browse all 18717

Trending Articles