static void ChangePassword(Args _args) { Dictionary dictionary; userInfo userInfo; str 20 OriginalPassword; ; dictionary = new Dictionary(); ttsbegin; select forupdate userInfo where userInfo.id == 'TestUser'; OriginalPassword = userInfo.password; userInfo.password = dictionary.buildPassword('test', 'TestUser'); userInfo.update(); ttscommit; // Now the password of the user 'TestUser' is 'test' // You can now login as 'TestUser' // You can now login as 'TestUser' // ... your code here ttsbegin; select forupdate userInfo where userInfo.id == 'TestUser'; userInfo.password = OriginalPassword; userInfo.update(); ttscommit; // Now the password of the user 'TestUser' is back to as it originally was }