5.23.00 – TkbmMWAuthorization OnLogin doesn’t fire

Home Forums kbmMW 5.23.00 – TkbmMWAuthorization OnLogin doesn’t fire

Viewing 2 reply threads
  • Author
    Posts
    • #57416
      Babis Michael
      Participant

      Hello,
      With 5.23.00 TkbmMWAuthorization OnLogin2 doesn’t fire with AutoLogin option enabled, any ideas ?

      Thank you

    • #57420
      Babis Michael
      Participant

      Since i create the actor on OnLogin event I fixed by cheking autologin:

      function TkbmMWAuthorizationManager.InternalLogin(const AActorName:string; const ARoleName:string;
      …..
      if (ctx.Actor=nil) then
      begin
      if AAutoCreateActor then
      ctx.Actor:=FActors.Add(AActorName,APassPhrase,ARoleName,’Auto created ‘+TkbmMWDateTime.Now.ISO8601String);
      if (mwaoAutoLogin in Options) or ((ctx.Actor<>nil) and (not ctx.Actor.Internal)) then // HERE added cheking auto login and fire the event
      DoOnLogin(ctx,ctx.FActor,ctx.FRole,ctx.FMessage);

      If you have something else to suggest let me know

      Thank you

    • #57427
      kimbomadsen
      Keymaster

      Hi,

      I have reviewed your suggestion and decided to include it in the code base. Thank you!

      /Kim

Viewing 2 reply threads
  • You must be logged in to reply to this topic.