This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Password Portal code snippets and documentation v8.0.1

Hi,

I'm trying to customize the Password Portal in v8.0.1 and have it send the otp reset code to an external email address. Searching I've found this code snippet in QER_PasswordWeb_Session

(...)

var vars = _UserSession.SessionModule.TableStore.GetTable("SessionAuthVars");
var accountName = vars.GetColumn("AccountName").GetValue(vars.First()).String;
var q = await VI.WebRuntime.ServiceConnection.Get().Session.GetLimitedSqlScalarAsync<string>("QER_Person_GetPasswordQuery", new []{ new QueryParameter("CentralAccount", ValType.String, accountName)}, _cx).ConfigureAwait(false);
vars.GetColumn("PasswordQuery").SetValue(vars.First(), q);

(...)

, which loads the value of the PasswordQuery column from Person into the temporary SessionAuthVars collection. How could I use these snippets to load, let's say, the value of the column DefaultEmailAddress from the table Person? I can see functions like QER_Person_GetPasswordQuery, are they documented?

Thanks!

Parents Reply Children
  • Hi Markus, 

    Thanks for replying. 

    Yes, my goal is to implement the following procedure: In the password portal, the employee enters her/his useraccount (CentralAccount) and if a secondary email address (a custom column in Person) is present for that useraccount, then the reset code is sent. 

    To achieve that , I've rewrited the form AuthByQuestion in QER_PasswordWeb_Session . Instead of a password question I need to query the secondary email address column. That's where I've stumbled upon that code snippet in my post and asked for a better understanding. Most of these modifications we made have a direct purpose, others are just simply for self education on the product.

    I've used the customizer method you've pointed out before so I'll try another approach.

    Thanks again! Slight smile