Tech Tip: Validate password by username instead of userID in project mode
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: December 30, 2021
When working in project mode, make sure any calls to Validate password uses the username as its 1st argument. Otherwise, passing the userID will cause the command to return False since userIDs are no longer stored in the .4DProject file. Instead, users are now stored in a directory.json which only contains the username and password hash. Once the username is passed as the 1st argument, the command will return True as expected.