Registration validation, why is it so hard?

Hello,

Why is it so hard to build a registration validation? I went through the tutorials but they are so simple and insecure that they don’t give the answer.
Here is what I need to do and how I have to trick Realm so that I can do it:

  • Validate password format
  • Validate username format
  • Check username is not already used.
  • Create the user if above tests passed.

So in order to do that I have to anonymously connect the user and run a Realm function (because only connected user can run functions) and that function will do the tests and create the user.

Does it sound obvious and the proper way to do it to you?

1 Like