Jump to content

How to decrypt the {$service.password} on clientareahome.tpl?


paperweight

Recommended Posts

On my clientareahome.tpl I am trying to show the user's service username and service password.

 

So I am trying this:

<div>
Username: {$service.username}
<br>
Password: {$service.password}
</div>

but it prints out something like:

useremail@website.com
JHG=+jtfyr7676FYTitf==77tFytr645ytrdthfHGFssaqQhgfHpi+85GHGf

 

So in the above, the username is correct, but the password is still not showing correctly. I searched this forum but found no good info yet for this. Any idea what I'm missing on this to display the accurate password?

 

Note: This is the user's service password, not their WHMCS client area password! I understand the WHMCS client password is not possible to decrypt~ :)

Link to comment
Share on other sites

Excellent, thank you for your help.

 

I added this at the top of clientareahome.tpl:

{php}$client_password = decrypt($service['password']);{/php}

 

And then below in the content I added this:

{$client_password}

 

But it printed nothing. I'm missing some step somewhere but not sure what. Any thoughts?

Link to comment
Share on other sites

  • 9 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated