- This topic has 2 replies, 2 voices, and was last updated 2 years ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Hello,
With 5.23.00 TkbmMWAuthorization OnLogin2 doesn’t fire with AutoLogin option enabled, any ideas ?
Thank you
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
Hi,
I have reviewed your suggestion and decided to include it in the code base. Thank you!
/Kim