Hi,
I need to get some customfield values on user login event ([Subscribe("DWN_STANDARD_USER_OnExtranetLogin")]), because I need to check a field upon login - whether the user should be required reset password or not.
Ive made a custom field, but it's value is null, when I try to access it.
This is some of the code:
public class HandleLoginRouteNotification : NotificationSubscriber, IComparable<NotificationSubscriber>
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args != null)
{
if (argsObject != null && argsObject.Any())
{
//need to get the field value from user - value on CustomFieldValue is null/empty..?
{
string recoveryPasswordPageLink = "/english/sign-in?LoginAction=Recovery";
}
{
//arg is null
var s = "";
}
Do anyone have trick to get it? Can't find anything in documentation :)
BR Marie Louise