17 points · by alloallo · 15y ago · 10 comments
(Note: There's nothing wrong with using email addresses for log-ins, i.e. letting users enter their email address and password when they log in. But there should always be some sort of other unique user identifier (typically an integer) so that users may change their email address without breaking any database references).
Although it can often mean that you end up giving a unique ID to pretty much everything it saves these kind of problems in the long run.
My other long-standing trick is to mark things as deleted rather than actually removing them from the database. This allows you to un-delete things. It has saved my ass on a few occasions.
Basic rule is: never use any data as unique ID, always use an abstract field for that.
Anyway, didn't mean to give you bad press or anything - I like your product, and as a Dane I think it's great to see Danish startups doing well. Good luck with your product.
You are right it's not a big thing to change and that it can be done quickly, the reason for not spending too much time on it yet is that we have handled the relatively small amount of requests to change email via the support - expect it to go into one the not too distant releases.