Examples: ResetUserPassword method
- This is an example of using ResetUserPassword to implement self-service
password reset. In this case the agent relies on http authentication
to identify the user; the agent is configured to run as 'web user'.
There is no need to pass in a user name, the authenticated name of
the user who is logged in is used by the method. In this example the
agent is running on the vault server, so there is no need to pass
in the server name. The only parameter that is needed is the new
password.
Dim s As New NotesSession Dim Doc As NotesDocument Call s.ResetUserPassword("", "", "test")
- This is an example of using ResetUserPassword if you don't use
http authentication to identify the user, but rather ask questions
to confirm the user identify. The user could be running the agent
as anonymous. In this case the method should be given the name of
the user whose password. The application must ensure that the name
of the person passed into the function is the appropriate name. rem
... code that verifies identity of the user via personal questions
is not shown....
Call s.ResetUserPassword("redeye/apple","hedy rosen/green/apple","test")
- This is an example of using ResetUserPassword to allow the user
to change the ID down load count without changing the password.
Call s.ResetUserPassword("", "", "", 10)