Jump to content

Obfucating Passwords in Client Area


dordal

Recommended Posts

If you've every wanted to obfuscate passwords in the Client Area (e.g. 'foobarbaz' => 'f*******z') I wrote up a solution tonight.

 

1) Upload the attached file to your '/libs/plugins/' directory, and rename it 'modifier.mask.php' (no quotes). This is a Smarty modifier function I wrote designed to mask passwords.

2) Everywhere you see a password display in the Client Area (e.g. clientareaproductdetails.tpl) change it: {$password} => {$password|mask}

 

Bingo! Now all your passwords will display as p******d instead of 'password'. If you want to give your users a little more of a hint, you can say {$password|mask:2} which will display two characters on each end: pa****rd

 

D

modifier.mask.php.txt

Link to comment
Share on other sites

('View details' button next to each account in the 'hosting accounts' page)

- There we go! At first glance I didn't see the password, because some clients were manually setup, so the cpanel password does not display since we didn't enter it. I checked the demo next, and in the demo, password is clearly displayed.

 

Is there another spot that displays the password?

 

Sorry, I'm pretty new to WHMCS, so I don't know where all of the passwords are shown. I've clicked around and didn't see anything.

Link to comment
Share on other sites

  • 4 months later...
  • 1 year 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