Change password verification

i would like to make a change password feature which users have to enter their current password first to go to another screen that let them to enter a new password they desire
but i have encountered some issues in the screen that requires user to enter their current password, i use a text input field and button component, i wanted set the button only clickable when the input text in the text input field component is equal to logged in user > password, but it is not an option to be selected, is there any solutions or other methods to verify users and bring them to the next screen after verification?

Yeah that’s not going to work unfortunately. We can’t allow your app to pull in the user’s password on the frontend for a comparison like that because it would not be secure and would expose secret credentials.

are there any other methods to do the same thing? verify the user is the login user and allow the user to change password, delete account?

Hello, what you can do is create a registration form in the signup that has a password as text and repeat password… so that the button has a visibility that the written password is equal to the input of repeat… in the database then add a text that is written password… ready there you saved that password.

Now in the functions that you want to do you work with the visibility of written password… for example you put the input… enter password and the button is only visible if the input is equal to logged in user>written password.

Another thing that you can create is a pin number (like the one for phones or bank accounts) when creating your account… add a confirmation number… create one… ready! then all the actions that must be validated with the pin do the same thing… that the written pin is the same as the saved pin.

It is a good topic to make the tutorial and clone for our new Templates and tutorials platform!

Our reset password action is the best way to go for having a user change their password.
You do NOT want to save plain text passwords in your database. Ever. Don’t do that please.

Of course, to reset if we use the adalo reset password button (which by the way would be great if adalo allowed us to edit the message that comes to the user because it is sent in English and not all users know English)

But from what I understood is that he wants to assign pages or functions that the user has to enter their password… from what I understood is… Change password, when you press there a modal opens where it says enter password to continue… in this case if you do not save the password as text, in many apps I added the system to create a 4-digit pin number to confirm… then it could be… change password a modal opens that says enter pin to continue, then enter the pin that the user created (which is not a password) and that’s it…

what about change password that requires verification to make sure the user is that user, is there a way to do it safely?

You can do it in two ways, like all companies do, either they send you a PIN by email (you create a random number) or the user creates a PIN to verify each step, the same as one does with a bank card… that way the action is only executed if the PIN is correct!

what does that forgot password button do, i tried and it does totally nothing

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.