You should use our standard login window (with Element type Login Control) and then after login you should redirect to your custom function.
Our built-in login mechanism will cover both customer and user login.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...