duythien / phalcon-tip

The source for code website
http://phalcontip.com
Apache License 2.0
23 stars 11 forks source link

Can't login with error "id is required" #1

Closed kenjis closed 9 years ago

kenjis commented 9 years ago

Because id of users table is not auto_increment. Probably phalcontip.sql is a bit out of dated.

duythien commented 9 years ago

I'm not sure, I used source forum Phalcon then it normal for me

kenjis commented 9 years ago

See https://github.com/zphalcon/phalcon-tip/blob/master/schemas/phalcontip.sql#L728 and seach AUTO_INCREMENT. users.id is not auto_increment.

I don't know why you are okay.

duythien commented 9 years ago

yes, you is true. I have just export table user then I see phalcontip.sql missing it

-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20;