Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question