I am using version v7.0.21. I have a custom app that calls kentico apis to manager/administer users within our kentico site. I can create users just fine but when I use SetPassword to update an existing users password i can see that the hash on db changes in the CMS_User.UserPassword column and it looks like the user password has been updated. When I try and login with the updated credentials the server cache stills thinks the password is the old one. I can only get it to work if I clear server cache (manually through Site Mgr) after I run SetPassword. Is there a way to add the new user password to server cache after I call SetPassword?
Here is the basic code. username is a variable passed in:
UserInfo userInfo = UserInfoProvider.GetUserInfo(username.Trim())
CMS.SiteProvider.UserInfoProvider.SetPassword(userInfo, "secretpassword");
// i've also tried call SetPassword w/ username
CMS.SiteProvider.UserInfoProvider.SetPassword(username, "secretpassword");
// i've also tried calling SetUserInfo after SetPassword to see if it made a difference. UserInfoProvider.SetUserInfo(userInfo);
Anyone have any tricks to override the server cache when i update password through the api from an outside application?