Jump to content

Enter the logged-in member's email address in a javascript (plaintext or encrypted sha256)?


Go to solution Solved by Nathan Explosion,

Recommended Posts

I am adding a javascript to my global header that will run only if the user is logged in. I've placed the javascript inside this if statement.

      {{if \IPS\Member::loggedIn()->member_id}}
      	
      {{endif}}      

In the script, I need to to replace a variable with the currently logged-in user's email address, either plaintext or encrypted sha256, however I'm not sure how to get that email address? 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...