In the application we use in perspective, we need extra password confimation at certain points in the application, I would prefer a popup where the user enter their password rather then the normal login screen.
For instance, when an edit is made to a recipe, save is pressed, then the system should ask the user for password confirmation. If password is correct, then save, if not then cancel an error message. It will also write to the audit log.
There will be other places this will be used for pressing certain buttons and such, so i am hoping to create a general modal that i can use in this project and hopefully in other projects as well.
The way i would prefer to do is to from the button call a function in the project where I can have a few custom texts to it, “Please enter password to confirm editing the recipe” for instance and then the function give me back true or false which i use in the script to see if i will save or not, but maybe its not that straight forward in the asynchronous environment.
Would appreciate a general idea how you would set it up.