2 Replies Latest reply on May 14, 2010 5:38 PM by Ranganathan Kaliyur Mannar

    Seam how to create Admin User

    Ranganathan Kaliyur Mannar Newbie

      Hi,
      I have an application and when I deploy it for the first time, there are no users obviously. How do I create a default user?
      1) i.e like having a import create table sql, do we also have provision for running sql statements for the first time?
      2) Also, I want to give freedom to my customer to have his own user id - even for the default user - so, I don't want to have a sql statement, but this to be done via screen. So, when the user hits the url, if there are no users in the db, I need to give a special first time screen.
      Where do I write this business logic code? how do I connect all these?