Jump to content

Recommended Posts

Posted

I have a requirement which allows automatic login if on the local network (ie.  172.x.x.x.x), and Password/Login if outside the network.

 

So the login form needs to close straight away if it detects 172.x.x.x

 

My first attempt was:

 

1) Add a Login Form to the WebApp

2) In the Form Show

 

      if CurrentIP.StartsWith('172.') then

      begin

           ModalResult:=mrOK;

          self.close();

      end

 

 

But this causes UniGUI to crash with a memory error.

 

Should I be OnCreate/OnActivate/OnBeforeShow to automatically close the form if conditions are OK ?

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...