S
S
shizzzzik2021-03-01 17:47:30
JavaScript
shizzzzik, 2021-03-01 17:47:30

How to make authorization on the site for certain users and the ability to add new ones?

Hello, since I'm not really familiar with the Steam API, could you tell me how to authorize the site for certain users (steamid) and so that it would be possible to add new users.

Example: https://a.csgorun.pro/welcome

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skvortsov, 2021-03-03
@skvrc

If the user is in a certain list - let him in, if not - do not let him in. The simplest if-check.
The Steam API returns data about the account that has been authorized, respectively, there is also a steam id there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question