Skip to main content
13-Aquamarine
March 27, 2020
Question

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

  • March 27, 2020
  • 3 replies
  • 2090 views

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

22-Sapphire I
March 27, 2020

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

 

18-Opal
March 29, 2020

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

Support
April 7, 2020

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