Forums

OverviewFelgo 2 Support (Qt 5) › Authenticated user can create another account, Firebase

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22239

    Edward

    Hey!

    My app requires all users to be authenticated with firebase – which is fine,

     

    Now I want ‘admins’ to be able to also add team members, by entering their details on a form and all the user needs to do is change their password on app download!

    I am able to write to my database area, but not register another user?

     

    For someone singing up themselves, I call;

    firebaseAuth.registerUser(email, password) //defined from strings on the form

     

    for my admins custom adding, I call;

    firebaseAuth.registerUser(AddEmail, AddPass)

     

    Is it not possible to add another user to firebase via this method?

    #22254

    Alex
    Felgo Team

    Hi Edward,

    interesting use case. It should definitely be possible to register new users this way. Things that would need to be tested, because I do no know them from the top of my head are:

    • If it works while logged in as another user, so maybe you have to call logout on the Firebase item first
    • If you are logged in to the new user after calling register, which means you’d have to log out after and log in with the admin user again (all that can be done without showing this to the user of course, just calling the methods)

    Cheers,
    Alex

    #22260

    Edward

    Hi Alex,

    This sounds like to would work – i’ll give it a go this evening, my only concern is that on calling logging out – is that when logging the admin user back in I would need to store the users password in app to run this all in the background, would this be insecure?

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support