Developer forum

Forum » CMS - Standard features » Extranet User Management caching user when server side validation is used via UserValidated Notification Subscriber

Extranet User Management caching user when server side validation is used via UserValidated Notification Subscriber

Steve Knutson
Reply

Hi 

We are using a NotificationSubscriber in order to provide some server side validation of the User when updating their User Profile via the UserValidated ntofification. We have noted however that the invalid fields are being cached (but not persisted to the database) even though validation fails. If the user navigates away from their profile and back again the invalid values remain.

We have a work around where we clear the cache from our NotificationSubscriber via   User.SetCurrentUser(PagePermissionLevels.Frontend, null);

This isn't a big deal but thought it worth raising in case others are having this issue.

Thanks

Steve

 

 


Replies

 
Nicolai Pedersen
Reply

Hi Steve

Thanks for the heads up and glad you found a workaround. I am not sure we will change this as the values are needed on the previous step. But I see the issue though.

Thanks for sharing! 

Nicolai

 

You must be logged in to post in the forum