I would like to display a user account signup form if no user is
present. The signup form will then create a new user account with admin
Right now I am creating a pre-defined / hard coded admin account.
Whenever user clicks on a login page, the application checks for an
account with admin privileges. If no such account is found, then I am
creating an admin account. Usually it will occur during first run of the
I would like to prompt user to create an admin account automatically,
i.e., without user having to click on any link. How can I invoke my
signup method in this manner? Where should I define it and call it from?