Solved: İnvitation links

Hello UNA team!

I have a question about invitation links.

There is a  parameter like icode=1992fdfee3c139f3475a2bbb59faXXXX

of course this parameter is refferring the user. What I want to learn is is that hash permanent  for a specific user or being calculated everytime it is shown?

İf it is permanent where is it stored? If calculated how is the function? :)

I am preparing auto emails/messenger messages to users which will include links that will send WhatsApp messages about the presentation/recommendation of the site, so that they may easily forward to their friends and friends to others.

  • 442
  • More
Replies (9)
    • as I see a new code is created dynamically with every page load.

      now I wonder how is the expiry time of the hashcode?

      • The hash is dynamic and reproduced everytime:

        • the user attemps to create an invitation link
        • for every email adress that is invited through email

        records are on sys_keys and bx_inv_invites tables 

        in bx_inv_invites table only the lastest new user's ids are updated with the icode that we sent to many users.

        the interesting thing is if you use an hash code for many new users it works, the procedures of befriending both parties and registering points are working for every new user that comes even with the same hashcode.

        • Hello Cem !

          The time expiration of invitation key depends on the Invitation key lifetime (in days) parameter in the Inviatationsapp settings.

          • Thank you Leonid 👍🙏

            • the problem for developers to use the same hash for everyone is the followup of the referred members.


              let me explain in real life condition:

              A member take the link from the invitations app and publish it in a whatsapp group of 100 people:
              as I see every new member will be registered and befriended normally, they will get their points.
              but at the end the icode will be associated only with the latest user that comes from that referral. here we lose the ability to follow up the referred users.

              this is important because we will need to see (or show the refferring user) who came from his/her referral.

              may be in futere updates a minor modification will be benefical to overcome this problem.

              Alex T⚜️ Andrew Boon Mark Purser 

              • I think you can track that through the accounts table, where you will find the referring url. if necessary you can filter that table with a specific url and you can know all users registered using the same invitation link. this is just a thought, haven't tried it myself

                • Yes Scholar there is the field for it in sys_accounts table, seems like we may track it  👍

                  • thank you for your suggestion, tiket created https://github.com/unaio/una/issues/3012

                    • thank you Roman 👍

                      Login or Join to comment.