Jump to content

Login Prompt Not Popping Up When /server Parameter Suffixed


Recommended Posts

Posted
2 hours ago, Frederick said:

but the server monitor login screen does not appear when my URL is http://www.mydomain.com/myapp/myapp.dll/server. I get the normal monitor screen.

procedure TUniServerModule.UniGUIServerModuleControlPanelLogin(
  ASession: TUniGUISession; const Auser, APassword: string;
  var LoginValid: Boolean; LoginAttempt: Integer);
begin

  if SameText(AUser, 'demo') and SameText(APassword, 'demo') then
    LoginValid:=True
  else
  begin
    if LoginAttempt=3 then
      ASession.Terminate('Login Failed');
  end;

end;
\FMSoft\Framework\uniGUI\Demos\Desktop\ServerControlPanel

 

Posted

I tried the above and the login screen is shown when the app is compiled to an EXE and run directly.

However, my setup is via a call to the Hyperserver's DLL which reads the Hyperserver's CFG file and then runs my EXE file. In this case, the login screen is not displayed and the Hyperserver monitor is just shown immediately.

Posted

Yes, I have recycled all nodes just now.

I am not sure if using the 1524 (32 bit) version of Hyperserver to run my 1534 (64 bit) compiled EXE could be a problem but I tried and failed to overwrite the 32 bit DLL but that is a story in another forum post.

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...