ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Login to access application

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login to access application

    I would like to create a login rpg(RPG III) where once user name and password are entered,only if these values are found(hardcoded username and password exists in database) the user is logged in and moved to second display screen of menu which further navigates to other modules,

    Once logged in the second screen must show the username and status as "Online" for the remaining session.Only after a function key like F7 is pressed should he be able to log out.

    How can i achieve this?

  • #2
    Re: Login to access application

    NEVER EVER hardcode passwords in a table or elsewhere where everybody can read it!

    Birgitta

    Comment


    • #3
      Re: Login to access application

      Well this is being used for testing purposes.Its a dummy application for testing purposes.Though i'd appreciate if u cud assist with the logic.

      Comment


      • #4
        Re: Login to access application

        You shouldn't test with situations that should never happen...

        Again No one here wants to write your code for you.... NO ONE.

        Please make some kind of effort to write the code yourself.
        If you have problems post the code and we will review it and help.

        But it is disrespectful to ask us to write your code
        I'm here to chew bubble gum and kick @#%@#%@#%.....and I'm all outta bubble gum !
        Yes I'm talking to you squirrel nuts.

        Comment


        • #5
          Re: Login to access application

          Code:
          User chain myUserIdPasswordFile
          If %Found(myUserIdPasswordFile)
            screen logic here
          endif
          Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

          Comment


          • #6
            Re: Login to access application

            Originally posted by DeadManWalks View Post
            Code:
            User chain myUserIdPasswordFile
            If %Found(myUserIdPasswordFile)
              screen logic here
            endif
            shouldn't that be Chain User myUserIdPasswordFile;???
            I'm not anti-social, I just don't like people -Tommy Holden

            Comment


            • #7
              Re: Login to access application

              ah, im in an iseries shop since Dec and not written code since then. Been doing cognos reports. Makes me want to punch a baby rabbit.
              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

              Comment


              • #8
                Re: Login to access application

                And pull that fluffy tail off and Jam it ........
                All my answers were extracted from the "Big Dummy's Guide to the As400"
                and I take no responsibility for any of them.

                www.code400.com

                Comment


                • #9
                  Re: Login to access application

                  running Cognos on Power hardware or intel box?
                  I'm not anti-social, I just don't like people -Tommy Holden

                  Comment


                  • #10
                    Re: Login to access application

                    Originally posted by tomholden View Post
                    shouldn't that be Chain User myUserIdPasswordFile;???
                    ... guys you forgot: He wants an RPGIII solution (not an RPGIV and most certainly no RPGIV Free Format Solution!)

                    Birgitta

                    Comment


                    • #11
                      Re: Login to access application

                      Tom, Cognos on sql 2005. I am a fan and not a fan of cognos. Very powerful and most of the times I don't see the need to use it. Especially for reports. On the other hand building cubes for the users to take offline on trips is way cool.
                      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                      Comment


                      • #12
                        Re: Login to access application

                        Guys is it possible to have a way of maintaining a session of the logged in user.Like if a user has entered username and pwd and got verified he is allowed access to the menu and the rest of modules.I wud like to have the name of user on each screen.The *user that can be used is very much different thing,what are the other ways of achieving this?

                        Comment


                        • #13
                          Re: Login to access application

                          are you asking about writing a menu system that secures menu options by userid?
                          All my answers were extracted from the "Big Dummy's Guide to the As400"
                          and I take no responsibility for any of them.

                          www.code400.com

                          Comment


                          • #14
                            Re: Login to access application

                            Yeah right.Any idea how to go about it?

                            Comment


                            • #15
                              Re: Login to access application

                              sure.... but I think there are already some out there.

                              You need to create a table that matched userid's to program names and/or menu options

                              i subfile screen -- or more depending on ????
                              RPG program to be attached to userid and called at login.

                              this program read the table created above and presents a set of menu's with options.

                              jamie
                              All my answers were extracted from the "Big Dummy's Guide to the As400"
                              and I take no responsibility for any of them.

                              www.code400.com

                              Comment

                              Working...
                              X