Learning control logic - is there a simpler way to write these two functions?

Even better: use column type ‘citext’ instead of ‘string’.

And a heads up: makes sure someone can’t register a username which is already in the email column.

2 Likes