Photo of Gage Peterson ๐Ÿ–
Gage Peterson ๐Ÿ–
@JustGage
08 Jun, 18:05

Unique Blog handles

Some rough user onboarding this week. One issue was a user created two accounts, but used the same blog handle. This caused the blog page to 500. I added a unique constraint to that and an error message.

Kind of forget how much users hit edge cases like crazy that you as a programmer never do ๐Ÿ™ˆ

4
sotak - profile photo
Marek Sotak
@sotak
08 Jun, 19:21

If you haven't done so, I would recommend to create a blocklist for some "reserved" words you don't want users to use. :) https://github.com/marteinn/The-Big-Username-Blocklist

saynotochurn - profile photo
Mike Cardona โœ‰๏ธ
@saynotochurn
10 Jun, 10:43

Okay, Iโ€™ll admit it. Iโ€™m the doofus that made the dup. Accounts ๐Ÿ˜‚โ€”to be fair, I changed my Twitter username, and Iโ€™m pretty sure thatโ€™s what caused the duplication issues. I hope. ๐Ÿ˜

saynotochurn - profile photo
Mike Cardona โœ‰๏ธ
@saynotochurn
10 Jun, 10:48

Nvmโ€ฆI didnโ€™t even sign up with Twitterโ€ฆIโ€™ll blame it on 1Password to make myself feel better.

JustGage - profile photo
Gage Peterson ๐Ÿ–
@JustGage
10 Jun, 19:12

Wow, that's a great idea Marek! I didn't know about that list but that's 100% something I should do.

@Mike, yeah account duplication can happen really easily, I think it's kind of a universal problem in software ๐Ÿค—