mishamx / yii-user

Yii PHP Framework extension for registration and management users accounts.
http://yii-user.2mx.org/
186 stars 154 forks source link

invalid reference `lastvisit_at` #65

Open nickGermi opened 11 years ago

nickGermi commented 11 years ago

Just noticed while the mysql database scheme contains lastvisit column, all the references to this column are as lastvisit_at.

Changing the column name in database fixes the problem.

schmunk42 commented 11 years ago

Use the migrations to setup the database. see also https://github.com/mishamx/yii-user/blob/master/migrations/m110810_162301_userTimestampFix.php

nickGermi commented 11 years ago

I tried to install it that way at first but received the error 'migration directory doesn't exist', could investigate but chose to install it manually since it's a new yii project.

Noticed some typos in the code too, file: protected/modules/user/controllers/LoginController.php lastVisit(); is misspelled at some places.

Also, I believe ajax validation hasn't been implemented in the code I had to edit above mentioned file to get back JSON response even though my form had ajaxvalidation set to true

Thanks,

masiorama commented 9 years ago

For the first part of your last comment, make sure to use the migrate functionality with the yiic created inside your application, and not the one inside the framework folder. That should should.