syxolk / euro2024

Euro 2024: Betting with your friends
https://www.wetten2024.de
52 stars 22 forks source link

Invitation codes #31

Closed syxolk closed 1 month ago

syxolk commented 6 years ago

Invitation codes could be a good alternative to registration captchas.

Every user is allowed to create an invitation code/link, like https://example.com/invitation/ABCDEF. Whenever a new user wants to register, he has to use a registration code or an invitation link in order to register. In the database, the new user is linked to the user who invited him. This creates an 'invitation tree':

A
|- B
|  |- C
|  |- D
|
|- E
syxolk commented 1 month ago

I implemented DISABLE_USER_REGISTRATION a while ago. This serves a similar purpose: to prevent spammers to register for an account long after the competition has started.