I followed the youtube video about creating a user login page and ran into 2 issues.
I do not have a “toggle component visibility” block. wont even pop up when i search for it. There is not even a component block section in the panel to the left.
the First screenshot is my UI builder and the second is the youtube video.
Make sure to assign an ID to your component before you use the block.
As for the error you shared with us, it appears you’re using a different login block than what’s shown in the video. If you’re certain it is not the case, please let us know your application ID so we can look closer.
I do not have “component” or the “get current user” blocks from the video. They are not in my UI Library. They do not pop up when I search for the blocks either.
So to my understanding, the “get current user block” that i have is in fact the correct block?
Also, as far as the error from the screenshot,
“Error: Login by object id is allowed only for CloudCode API key”
I am not sure how to fix. It seems i need to use cloudcode for something but i didnt see anything about using that in the user login tutorial youtube video.
I deleted the page and started from scratch, following along with the user login tutorial video. It is now giving me an “invalid password or login” error message. I am not sure what I am doing wrong. Could I have something in my data table set up wrong?
I even created a new user to test with the sign up page. Maybe there is an issue with my sign up page?
I just checked your problem. When I manually created a user in the Users table, the login was successful. For the user you provided (Use credentials:
Email - alexander.lusso@gmail.com Password - Test) there is a different password in the Users table because of this you get an error. You need to look for a problem in the logic for registering users (sign-up page).
Thank you!
I checked my logic for the sign up form and one of my properties for “register user” (password) had a capital “p”. I corrected that to lowercase and it fixed the problem.
Thanks again!