Login User

Mar 14, 2015 at 11:08 PM
I have registered the loginModule, i have created a User, i logged int using the helper Login, everyting look's ok, but if i go to the operation log and transaction log and the user ID is 00000000...etc... and the user name is %Anonymous

What am i missing for this to work?

ps: i am using winforms.
Mar 15, 2015 at 12:18 AM
to make UserId appear in logs, make sure you create OperationContext and UserInfo with particular userID. Create operation context from UserInfo with logged-in user ID, save operation context in some global variable, and open EntitySession using it only. Logging modules get UserId from the OperationContext (session.Context.User.UserId)
Mar 15, 2015 at 2:33 AM
Worked like a charme :)