hello all!
I am stuck on using t his function: security.checkPassword. I would like to incorporate it into the onaction of an icon on a form so only authorized individuals can use it. Here is the code sample:
//return true if the password for that userUID is correct, else false
if(security.checkPassword(security.getUserUID(), 'password1'))
{
security.setPassword(security.getUserUID(), 'password2')
}
else
{
application.output('wrong password')
}
What I have done is replaced the getUserUID and pw to:
//return true if the password for that userUID is correct, else false
if(security.checkPassword(security.getUserUID(BOB), '1234'))
{
security.setPassword(security.getUserUID(BOB), '1234')
}
else
{
application.output('wrong password')
}
This the error I get......
ReferenceError: "BOB" is not defined. (my_test_pass; line 4)
What am I doing wrong?