Jump to content

[hybrid app] BeforeLogin doesn't have any effect in mobile part


neo4a

Recommended Posts

For desktop part bypassing LoginForm is working.

procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject;
  var Handled: Boolean);
var
  aHP : string;
begin
  aHP := (Sender as TUniGUISession).UniApplication.Parameters.Values['OTT'];
  aHP := Decrypt(aHP, cOTT);
  if  copy(aHP, 1, 2) = 'HP' then
  begin
    Handled := true;
    FAutoStartAction := aHP;
  end
  else
  begin
    Handled := false;
  end

But for mobile part this is not working.

An initial call of http://localhost:8077/?OTT=12345 is always converted to http://localhost:8077/m and it's not possible to bypass LoginForm.

How can I bypass LoginForm in desktop and mobile part for special parameter?

TIA.

 

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.

×
×
  • Create New...