Jump to content

WebMonitor - How to manage programatically


Darth Florus
 Share

Recommended Posts

provide the password only for the customer who wants to access the monitor.

procedure TUniServerModule.UniGUIServerModuleControlPanelLogin(ASession: TUniGUISession; const Auser, APassword: string;
  var LoginValid: Boolean; LoginAttempt: Integer);
begin
  if SameText(AUser, 'USER') and SameText(APassword, 'pass') then
    LoginValid:=True
  else
  begin
    if LoginAttempt=3 then
      ASession.Terminate('Login Failed');
  end;
end;

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...