How do I prompt for user password using LS?

I wish to create an action button on a form which will ask the current user for his/her password. I need to be able to trap whether or not the password entered is correct.

Is there a way I can do this with LotusScript ?

Any suggestions welcome.

Thanks

Victor

Subject: How do I prompt for user password using LS ?

hi victor

i just have done that last week.

i used the prompt method of the uiworkspace class to display a dialogbox (i have used PROMPT_PASSWORD to hide the input) and then i have used a c api (i have used SECKFMChangePassword, because i needed to change the password on an copy of the id i did just before displaying the dialog box. but you could use SECKFMSwitchToIDFile to verify if the password is okay or not) call to verify the password.

cheers

Stevan Bajic

Subject: RE: How do I prompt for user password using LS ?

Stevan,

Thanks for your reply.

The problem with doing it this way is that I need to make a copy of the user.id first, and unfortunately there is no consistency in where about the file is stored for each of our users, so I cannot hard code this into LS.

However, you have given me an idea so I will continue to persue it.

Thanks again

Victor