thyseus / yii-user-management

a user management module collection for the yii framework
185 stars 122 forks source link

Registration not working #129

Open gioppoluca opened 11 years ago

gioppoluca commented 11 years ago

The registration of the current release is not working so tryed to shift to the current git version but also not working. here is the error: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field 'username' doesn't have a default value. The SQL statement executed was: INSERT INTO user (password) VALUES (:yp0)

Any hint? Thanks

nagarajpg commented 11 years ago

@gioppoluca how did you enable registration module in config/main.php?

I am not able to make it work in my webapp.

belokonm commented 11 years ago

0.9 wip version I can launch with 'import'=>array( 'application.modules.user.models.',
'application.models.
', 'application.components._', ), 'modules'=> array( 'user' => array( 'debug' => false, 'userTable' => 'user', 'translationTable' => 'translation', ), 'usergroup' => array( 'usergroupTable' => 'usergroup', 'usergroupMessageTable' => 'user_groupmessage', ), /'membership' => array( 'membershipTable' => 'membership', 'paymentTable' => 'payment', ),*/ 'friendship' => array( 'friendshipTable' => 'friendship', ), 'avatar' => array(

    ),
        'registration' => array(

        ),
        'profile' => array(
            'privacySettingTable' => 'privacysetting',
            'profileTable' => 'profile',
            'profileCommentTable' => 'profile_comment',
            'profileVisitTable' => 'profile_visit',
        ),
        'role' => array(
            'roleTable' => 'role',
            'userRoleTable' => 'user_role',
            'actionTable' => 'action',
            'permissionTable' => 'permission',
        ),
        'message' => array(
            'messageTable' => 'message',
        ),
        /*
        'gii'=>array(
                'class'=>'system.gii.GiiModule',
                'password'=>'Enter Your Password Here',
                // If removed, Gii defaults to localhost only. Edit carefully to taste.
                'ipFilters'=>array('127.0.0.1','::1'),
        ),
        */
    ),
// application components
'components'=>array(
    'user'=>array(
                'class' => 'application.modules.user.components.YumWebUser',
                'allowAutoLogin'=>true,
                'loginUrl' => array('//user/user/login'),
              ),
            'cache' => array('class' => 'system.caching.CDummyCache'),

.....

Login url /index.php?r=user/auth not site/login

nagarajpg commented 11 years ago

@belokonm now My registration page is working, Thanks :+1: