How to make a login PIN?

Hi everyone!

You probably know that I am working on a new administrator panel system. However, I want it to be unique from other systems.

I wanted to make a login UI where you would need to provide an input of your 6-digit PIN (which can contain only numbers) and your username. A login button will somehow verify the PIN and username, granting access to the management panel. There should also be a button to reset your PIN if you forget it.

Is this possible? And if so, is there a way to create and reset a PIN through a Discord server?

This is possible, however to link it to discord you would need a server with an api using a bot, however if it runs on the server making a digit pin will work perfectly fine.

E.g, something like this will work:

pin == 123123

if PassInput.Text == pin then