When executing system.security.validateUser with password parameter blank, the user loses access.
Example:
Ignition 8.1.5
When executing system.security.validateUser with password parameter blank, the user loses access.
Example:
Ignition 8.1.5
What if you secure the password field checking if password is blank.
password = '1234'
validate = False
if password.strip() != '':
validate = system.security.validateUser('user',password)
Yes… but it’s kind of dangerous for those who don’t know, i had tested it with my designer account and lost it, on our server we only have access to the designer, someone can get locked in the future
I don’t think the use of a blank password made you “lose access”. What probably happened is: you triggered the validateUser scripting function with the incorrect credentials too many times and triggered a lockout for that user. See lockout settings described here: Classic Authentication Strategy - Ignition User Manual 8.1 - Ignition Documentation
In your Gateway logs, do you see any messages like User 'Teste01' is locked out or User 'Teste01' is now locked out? Especially around the time where you think you lost access? That would confirm my theory…