dordal Posted February 19, 2008 Share Posted February 19, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
RPS Posted February 19, 2008 Share Posted February 19, 2008 If you've every wanted to obfuscate passwords in the Client Area - Where are they displayed in the client area? 0 Quote Link to comment Share on other sites More sharing options...
dordal Posted February 19, 2008 Author Share Posted February 19, 2008 On the account details screen, for one. 0 Quote Link to comment Share on other sites More sharing options...
RPS Posted February 19, 2008 Share Posted February 19, 2008 1) domain.com/whmcs 2) login 3) click "Client Area" on the client area home page that it brings me to by default I don't see any passwords at all. 0 Quote Link to comment Share on other sites More sharing options...
RPS Posted February 19, 2008 Share Posted February 19, 2008 Here's what it looks like for me... 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted February 19, 2008 Share Posted February 19, 2008 Dordal is referring to the client area as a whole, not just the client area dashboard. Passwords for accounts are displayed on their respective details pages. ('View details' button next to each account in the 'hosting accounts' page) 0 Quote Link to comment Share on other sites More sharing options...
RPS Posted February 19, 2008 Share Posted February 19, 2008 ('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. 0 Quote Link to comment Share on other sites More sharing options...
Mwki3 Posted July 6, 2008 Share Posted July 6, 2008 hey put : {$password|mask:0} hey give 0 Quote Link to comment Share on other sites More sharing options...
FrostByte Posted October 18, 2009 Share Posted October 18, 2009 I installed this mod on my WHMCS 4.1 and whenever i try to view my productdetails, i get a blank page. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.