FEATURE: Reduce invite key length (PR #12692)

We used to generate invite keys that were 32-characters long which were not very friendly and lead to very long links. This commit changes the generation method to use almost all alphanumeric characters to produce a 10-character long invite key.

This commit also introduces a rate limit for redeeming invites because the probability of guessing an invite key has increased.