2 Replies Latest reply on Aug 1, 2016 11:56 AM by AlexBlair_2

    really simple authentication - Runtime Solution

    AlexBlair_2

      ok,

         Scenario:

             Filemaker 14 Adv Pro

             Windows OS

             App: "Your Silly App"

       

            If I do the following

             (g_key = global for key)


                   scripttrigger onfirstwindow

                             if g_key = " "

                                  setfield  g_key = get(persistentid)

                             elseif

                                 g_key= get(persistentid)

                                     go to Splash and start app.

                             else

                                 Show Custom Dialog " Sorry you need to use this on your registered machine"

                                 Close File.

       

      Assuming this field was on an developer layout/table and not accessible except via the global reference.

      And I used something like inno to turn the runtime into an .exe

      How easy would it be for this to be bypassed?

       

      I have a small app I want to give away in my local community but want to give only one copy of app to each resident.

       

      Without a copy of Filemaker Advanced I dont see this being easily bypassed and app is so simple anyone with filemaker advanced

      would just write it themselves.

      Thanks

        • 1. Re: really simple authentication - Runtime Solution
          coherentkris

          scripttrigger onfirstwindow

                                 if g_key = " "

                                      setfield  g_key = get(persistentid)

                                 >> what do you want to happen here? this "case" will cause execution of  the END IF clause and continuation of your script.

                                 elseif

                                     g_key= get(persistentid)

                                         go to Splash and start app.

                                 else

                                     Show Custom Dialog " Sorry you need to use this on your registered machine"

                                     Close File.

                              END IF

          • 2. Re: really simple authentication - Runtime Solution
            AlexBlair_2

                if g_key = " "

                                        setfield  g_key = get(persistentid)

                                   elseif

             

            The above script is intended to say...  If they already have stored a persistentid in the global then proceed onto to the validate step.   If it is empty then that means it is a new install and store the persistentid of this machine in the global...

             

            thanks for responding.