Jump to content
uniGUI Discussion Forums

Login Prompt Not Popping Up When /server Parameter Suffixed


Recommended Posts

In my Hyperserver DLL configuration file, I set the following parameters:-

[hyper_server]
prompt_login=1

[login-0]
user_name=myname
password=mypass
admin=1

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.

What am I doing wrong?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1534)
 

Link to post
Share on other sites
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

 

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
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.

×
×
  • Create New...