I am trying this, but for some reason the “Get current user” function is returning null, even though I logged in first before calling the Register function.
I am calling the Register function via Javascript.
I also called Backendless.UserService.getCurrentUser() just before calling the Register function to confirm that I am logged in and I do get a result, but the “Get current user” function still returns null on the event.
When I run this code in Javascript I always get the thrown error “No Logged in User Found” and when I check the RealTime Logs then the “Get current user” block object is null.
function userLoggedIn(user) {
console.log(“user has logged in”);
console.log(user);
Ideally I wanted the Admin users to Register users first, but I think I will change my strategy.
Currently I have a Members table which will get loaded with Members by the Admins.
We would then send an invite to the member to Register.
I will then use the beforeRegister event and check if the Registering email address exist in the Members table first and then allow the Register procedure.
it looks like a bug on our side. I have created an internal ticket with ID BKNDLSS-23373 to investigate this issue. We’ll let you know once we have any news.