perchlabs/webird

Fix error with incorrect password

Closed this issue · 2 comments

When the incorrect password is entered the error message "PHP message: Exception: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempted' at row 1" is logged.

Use integer type, or datetime-related from your database (mysql?).
Currently used smallint have max value 65535 (unsigned), which is not enough for unix timestamp.

Here

`attempted` smallint(5) unsigned NOT NULL,

@andrew-demb Let me know if this commit fixed it. I probably will need a week to verify but I'll mark this as solved for now.