Changing HTTPPassword Programmatically

Hi all,I must mention that I owe much to 4&5 forum and 6 forum as a beginner. I made use of forums very much and learnt a lot.

My problem is…Well,in fact, my main aim is to remember my user his HTTPPassword when he forgets it. User is a web user and he just clicks on “I forgot my password”, and I aim to do this creating an agent. However, as far as I could follow from the forum(s), there seems to be no way to get the HTTPPassword (decrypted) of a user. OK, then a new idea can be to change the password and to send this new password to the user. But again, I couldn’t find much about this (ChangeHttpPassword makes no sense as I do not know the old (decrypted) password).

Could anyone lead me?

Thanks in advance,

Ulku

Subject: Changing HTTPPassword Programmatically

I am not a crack with this. But I would write an agent in LS where I access the persons document and set the HTTPPassword field with a new value and then compute the document with the form.

userDoc.HTTPPassword = “new Password”

userDoc.computeWithForm( true, true )

Call userDoc.Save( true, false )

But again. I did not try this.

Subject: RE: Changing HTTPPassword Programmatically

Thank you Christian,I didn’t expect such a straightforward & neat solution, it worked.

Ulku

Subject: RE: Changing HTTPPassword Programmatically

newpassword=“DominoDevelopersAreMyGods./Admin”

ev=evaluate(|@Password(“+newpassword+”|)

nabdoc.httppassword=ev(0)

call nabdoc.save(true, false)

Note that it can take several minutes before user can login with his new password due to caching of views in NAB. You can try to programatically refresh views to speed it up.

Subject: And if you use the “Stronger” internet password: ev = evaluate(|@HashPassword(" + newpassword + "|)

Subject: RE: Changing HTTPPassword Programmatically

With R7 does the C API calls change for changing the HTTPPassword?

I see the examples in this topic show ComputeWithForm with 2 arguments. My C API call for ComputeWithForm has no arguments. Do I need to add them?

What are the arguments for?

Lisa