A couple of questions/help needed

Hi again,

Sorry for the posts recently, still getting used to Wappler but some things don’t seem to be documented or are a bit outdated so I’m struggling to implement them. I’m hoping I could get some help with the following:

  1. I’ve followed this tutorial but instead of using Argon2, using bcrypt, and while the signup works, whenever I attempt to login the data comes back as incorrect. I’ve double-checked all the forms, and they are correct. Is there an extra step for bcrypt that I’m missing that isn’t in the above guide? I also tried toggling “Use Password Hash Verify” just in case.

  2. I want to make my navigation bar somewhat conditional, so only certain nav lists items are displayed if 1) The user is logged in, and 2) if the user has X permission. Using server connect and a server action I am able to get the users info (for example, getuserDetails.data.query[0].admin), but how would I go about having a condition to check if this is 1 instead of 0? I did give getuserDetails.data.query[0].admin==1 a go but that didn’t seem to work.

Thanks, and thanks for the help recently, I’m very much enjoying Wappler.

Community Page
Last updated: