Skip to main content
Mar 27, 2020 1:20 PM UTC
Question

How to Get and set user extension properties, when user reset the password from login page.

Hello All,

 

How to Get and set user extension properties, when user reset the password from login page.
Ex: get and set emailAddress property of the user

 

Please share some snippets or idea to solve above.

 

Thanks,

Nagaraj

3 replies

Mar 27, 2020 3:17 PM UTC

Password has a specific service associated with it, best guess Users[UserName].UpdatePassword (maybe ChangePassword)

All other properties can be set by just using Users[UserName].UserExtensionName

 

Mar 29, 2020 8:05 PM UTC

Hello @NERaj,

 

Take a look at events on SecurityMonitor thing, such as LoginSucceeded and ApplicationKeySucceeded.

 

Theoretically, your subscription to ApplicationKeySucceeded should fire when the user follows the "reset password" link from the email (those resets are authenticated by temporary appkeys). From this subscription you should be able to get the reference to the user (via AppKey object) and reset the properties as required.

 

I haven't tried it, but I don't see why it wouldn't work.

 

/ Constantine

Apr 7, 2020 3:34 PM UTC

Hi @NERaj.

 

If one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon