Change old user password
I have a post api to change user data, the password change function is now implemented as follows: Input "confirmOldPassword" should be equal to the old password,
if this is true input "InputNewPassword" should replace the old password value. I don't know how to implement security for this logic, maybe it can be implemented differently, I will be glad for any recommendations
Best Answers
-
Hi,
I think "validate password" is a function you are looking for it will compare your input password with the secured password from database. If the validation will go well then you can edit your user password in conditional statement. Hope that helps
-
By default password field in the automatically created user table is internal. And I think in most cases this is the way to go.
Answers
-
Which Access API type should I choose for this function, public, public private, internal? I've read about it in the documentation and on the forum, but I don't fully understand how to apply it
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback