As part of our integration each contact recieves a “login-salt” property for auto-login links use.
We created a login-link module that utlizes that property by concatenating its value with current timestamp and hashing it all with MD5 (all written in said module) - let’s call the MD5 hashing result the login-token.
The issue we have is that the MD5 method “triggers” before the contact’s properties are set in the email which results in a very wrong login-token.
following is an example of what we are doing:
{% set token = (unixtimestamp(local_dt)~contact.login_salt)|md5 %}
My question is - is there any way for getting the MD5 method to run only AFTER the contact.login_salt is filled with the proper value?
Is there a better way of implementing this for use in emails?
Thank you!