I can't seem to understand this part
As for the firebaseDB here you go
The Data, to see your data schema.
Are "Adam" and "Filo" usernames and their values the passwords? and how are you store that other data (score...) for each user?
Yes
For this part i am still figuring it out, if it is not possible. Ill just scrap that idea, for now i am trying to implement Create(Login/Reigster), Read(Scoreboard[haven't figure it out yet]), Update(User can edit username / password) and Delete(Current issue[delete account])
Never store a password as plain text in a database, store their hash values instead!
Taifun
Maybe it would be a good idea something like this:
so, it is easy to check if the user exist or not, to check its password (for signUp/logIn process) and to recover the data associated to the user (score in this example but you could add more concepts)
Thanks for the suggestion, will implement it next time. For now, Im chasing time as this is for my school project
may i ask how do you do this? do i need to change the rules?
No, the rules are other thing relative to the read/write permission.
But you need to handle the projectBucket and the tags in a different way.
An example of the login/signUp screen with that data schema could be:
In this way, the projectBucket is the userName and the tags the password, score...
And something like this your second screen, where you get all the values associated to the logged user:
I have added a button "AddScore" to be able to add any value to the score property of the user.
I share the aia in case you want to take it as a starting point (you have to put your token and your URL)
OtherExample_FB_Component_SignUpLogin_and_recover_data.aia (6.7 KB)
And also maybe you need to consider the advice from Taifun:
post#24
Wow, tried implementing it but now it seems like it wont even register my account, i guess ill just share my aia here, i can't even get the gist on how to do this anymore
HangManPj (1).aia (22.6 KB)
mmm, check your firebase token...it seems too long.
It works fine with my firebaseDB instance.
What should i set it to? cause i tried the aia file you shared and it works fine while having similar firebase token to the current one im doing
are you using the default one (MIT) or your own firebaseDB? Anyway you were using a firebaseDB for the before attempts, weren't you? Set the same.
You mean for the FirebaseToken? If yes then I am using the default MIT one, i do not know of FirebaseToken that came from firebaseDB
mmm, the token is not the default one and neither the URL....set the same you had.
If you drag a firebaseDB component you will see the default values (for both, URL and token).
If you are using your own firebaseDB, then the token is here:
I believe I am using the default token when i drag the firebase component, i only change the URL since i need to connect it to the firebaseRTDB right. And for the token it seems like it just stated there "No web API key for this project"
But how have you been testing before? Remove the token completely and paste again the default one.
Did you change the rules in firebaseDB?
As i have said, i didn't change anything for the firebaseDB component besides the URL, everything else is still in default
Nope, it is still default
Well, if before it was working and not now...something has changed...
If you have not Web API key in firebase, if I don't remember bad you can go to "Authentication" section, start there and them the key must be generated.