Password verification for organizations

I need to create function for password verification. I want to create form where user will do some action with adding comment that will go to db and enter password so if it will be correct, then action will be continued with some other functionality.
Found this topic

and seem answer there is not working for organization, I can’t even add password grant type for app that have organizations