You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Situation:
You are in a Discord server and want to get access to the CTFNote, there is possibly a pin somewhere with the invitation code which you can use to get your own account. However, you aren't done yet. You then will have to manually link your account.
Proposed Solution:
What if there was a better and quicker way of making an account and syncing your account to your discord. For this I propose a command, for example /createaccount or /register (name to be determined). Which will create an one-time invitation link, which, after used will automatically link the Discord id to the just created user.
There is also an option that the Discord bot checks if the user has a specific role and only if they have this role allows to create their own account using this command.
This option can also be turned off using environment variables.
The one-time invitation links that can be created through the admin dashboard remain unchanged and will just create the account without any additional linking.
The text was updated successfully, but these errors were encountered:
Implementation idea is to modify the table that holds invitation links and add a optional discord_id field in.
Add an additional ctfnote_private.do_register() that takes an extra discord_id parameter. Modify ctfnote.register_with_token() to check whether the invitation has a discord_id or not and call the appropriate do_register() function
Situation:
You are in a Discord server and want to get access to the CTFNote, there is possibly a pin somewhere with the invitation code which you can use to get your own account. However, you aren't done yet. You then will have to manually link your account.
Proposed Solution:
What if there was a better and quicker way of making an account and syncing your account to your discord. For this I propose a command, for example
/createaccount
or/register
(name to be determined). Which will create an one-time invitation link, which, after used will automatically link the Discord id to the just created user.There is also an option that the Discord bot checks if the user has a specific role and only if they have this role allows to create their own account using this command.
This option can also be turned off using environment variables.
The one-time invitation links that can be created through the admin dashboard remain unchanged and will just create the account without any additional linking.
The text was updated successfully, but these errors were encountered: