aXeR Posted August 16, 2008 Share Posted August 16, 2008 Hey, Its recently come to my attention that WHMCS by default does not seem to require a user to login when they get an email stating the ticket has been update along with a URL to view the update. This to me seems a bit dangerous and as such I want to force the user to be logged in to stop other people gaining access to what could be private details. Can this be done and if so, how? If not, why not? Cheers 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted August 16, 2008 Share Posted August 16, 2008 The link in the email contains a private key, without it they can't view the ticket. You can modify the viewticket template if you want to force them to login to view. 0 Quote Link to comment Share on other sites More sharing options...
aXeR Posted August 17, 2008 Author Share Posted August 17, 2008 How do I go about that? Cheers 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted August 17, 2008 Share Posted August 17, 2008 Configuration > Email Templates Edit the template named "Support Ticket Reply" so it doesn't include the direct link, change the link to just point to supporttickets.php 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted August 17, 2008 Share Posted August 17, 2008 I believe you can use {if $loggedin} tags on supportticketview.tpl 0 Quote Link to comment Share on other sites More sharing options...
aXeR Posted August 17, 2008 Author Share Posted August 17, 2008 Thanks, any chance you could go into more detail as I'm struggling to implement this and get it working! Cheers, Jon 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted August 17, 2008 Share Posted August 17, 2008 Replace View Ticket {$tid} with {if $loggedin}View Ticket {$tid} Replace </form> with </form>{else}You must login to view this ticket{/if} That should do the job. 0 Quote Link to comment Share on other sites More sharing options...
aXeR Posted August 18, 2008 Author Share Posted August 18, 2008 Thanks very much for your help but I cant find "View Ticket {$tid}" to replace, is my supportticketview.tpl different from yours? (I've attached it for you to see) supportticketview.txt 0 Quote Link to comment Share on other sites More sharing options...
ur Posted August 18, 2008 Share Posted August 18, 2008 Easier yet, change the very first lines in that template you posted: {if $error} <p>{$LANG.supportticketinvalid}</p> {else} Change to {if $error} <p>{$LANG.supportticketinvalid}</p> {elseif !$loggedin}You must login to view this ticket {else} 0 Quote Link to comment Share on other sites More sharing options...
aXeR Posted August 18, 2008 Author Share Posted August 18, 2008 Thats fantastic, thanks! 0 Quote Link to comment Share on other sites More sharing options...
BubbleRack Posted October 4, 2008 Share Posted October 4, 2008 Worked a treat thanks ur 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.