Synister Posted March 5, 2021 Share Posted March 5, 2021 Is there a way to prevent a client from Copy and Pasting when submitting a Ticket or replying? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2021 Share Posted March 5, 2021 11 hours ago, Synister said: Is there a way to prevent a client from Copy and Pasting when submitting a Ticket or replying? using oncopy, oncut & onpaste could be options in the form - could certainly be applied to input fields/textareas etc - though there's no guarantee that it couldn't be got around by those determined to! 1 Quote Link to comment Share on other sites More sharing options...
Synister Posted March 5, 2021 Author Share Posted March 5, 2021 What Im actually trying to do is prevent clients from copy/paste their username/password into the ticket area. So maybe just way to prevent in on the overview.tpl file would work, since currently that is the only place the username and password are visible. I get tickets where clients say their username/password do not work. But then they copy and paste it into the ticket which allows them to send the correct username and password. However that is not the username and password they are typing. Usually happens when the username or password contains " Il0O" in them. I want to prevent them from being able to copy/paste it when then would require them to type it and then my staff could see the exact error they are doing when typing their username and password. Â It might not be a good idea to limit the ticket area due to there may be a error or something they would need to copy/paste in the future. Â 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2021 Share Posted March 5, 2021 7 minutes ago, Synister said: So maybe just way to prevent in on the overview.tpl file would work, since currently that is the only place the username and password are visible. are you talking about the cPanel overview template? it shows username & password ?? 1 Quote Link to comment Share on other sites More sharing options...
Synister Posted March 5, 2021 Author Share Posted March 5, 2021 18 minutes ago, brian! said: are you talking about the cPanel overview template? it shows username & password ?? NO Im not using the Cpanel Overview.tpl Im using a custom provisioning module at this time. 0 Quote Link to comment Share on other sites More sharing options...
Synister Posted March 5, 2021 Author Share Posted March 5, 2021 Ok I think I got it <body oncopy="return false" oncut="return false" onpaste="return false"> Â 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2021 Share Posted March 5, 2021 yep that's it - though from what you describe, you might not need the onpaste option on the overview paste as t sounds like they can't paste there, only copy or cut. 1 Quote Link to comment Share on other sites More sharing options...
Synister Posted March 5, 2021 Author Share Posted March 5, 2021 9 minutes ago, brian! said: yep that's it - though from what you describe, you might not need the onpaste option on the overview paste as t sounds like they can't paste there, only copy or cut. Thank brian! your a superstar. Ive learned a lot just from reading your replies to topics. 2 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2021 Share Posted March 5, 2021 57 minutes ago, Synister said: Thank brian! your a superstar. Ive learned a lot just from reading your replies to topics. that's very kind of you to say. 🙂 2 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.