Subject |
passwordmaskef.cc |
From |
Charlie <tm@tc.com> |
Date |
Sun, 04 Nov 2018 19:47:24 -0500 |
Newsgroups |
dbase.getting-started |
I came across something strange with this custom form (passwordmaskef.cc. Although it could be something I did or have done wrong, I am not sure.
OK the code I am using to verify a password is:
cPass = trim(form.PasswordMaskEF1.enteredPassword)
if cpass = trim(form.users1.rowset.fields["pass"].value)
msgbox( cpass+" "+form.users1.rowset.fields["pass"].value )//test messagebox
do menum.wfm
form.close()
else
msgbox('Sorry wrong password.','Error')
msgbox( cpass+" "+form.users1.rowset.fields["pass"].value )//test messagebox
form.passwordmaskef1.value = ""
form.passwordmaskef1.setfocus()
endif
I used a couple of message boxes to verify what I am finding.
Say the actual password in the table is test. If you type in 'test' of course the program opens correctly. If you type something like 'fejjeij' the password doesn't work and you get the sorry message.
But if you type in 'test11111' the password passes. So any characters after the password seem to be completely ignored.
The test message boxes confirm that both strings are exactly the same or not the same.
I thought possibly there was some property that I was missing like exact or something, but that doesn't seem to be the case.
I am wondering if something is wrong with my code or possibly this is a constant problem with the custom form?
Thanks much!
|
|