by bitanarch · 16y ago · 0 comments
The IP checking bit is probably not a good idea. A mobile phone user can be switching between 3G and a public Wifi hotspot as he goes. It can negatively affect user experience.
And don't forget about the salt. Store password something like SHA-1(MD5(password)+password)