Hi all.
I'm getting the following error:
"Invalid call of the 'Login' client action of the 'Common.Login' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action."
The only thing that I changed so far is that in the OnLogin function I am granting the user a role. When I try to login for the first time I am redirected to the "Invalid Permissions" screen, but when I try to login a second time, I am able to do it without any issues.
Any ideas?
Thanks,
Maria