O
O
Orkhan Hasanli2018-11-07 00:45:40
Java
Orkhan Hasanli, 2018-11-07 00:45:40

How to make the first registered user the default admin?

Good day!
How to make the first registered user the default admin?
Users are stored in the database. What is the best way to implement the above functionality so that at the same time it does not check the user each time with each new registration? Or is it worth creating a default user during initial initialization?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-11-07
@azerphoenix

You can also check: it is unlikely that users will be registered by the thousands every minute.
usually use one of 2 scenarios: a default user created automatically or at the installation / initialization stage ask for the necessary data, according to which the user is created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question