Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Ignoring '#' at ticket number as pasword

Some users enter ticket number with # char at login page. It will be good to auto remove # char.

Comments

  • This isn't tested!!! But you may be able to do something like:

    edit /login.php
    at line 26 change the existing code:
    if(($user=Client::login(trim($_POST['lticket']), trim($_POST['lemail']), null, $errors))) {


    to
    if(($user=Client::login(trim(str_replace('#','',$_POST['lticket'])), trim($_POST['lemail']), null, $errors))) {


    p.s. its been a while since I used str_replace so I may have gotten it a little wrong. You may want to look it up. :) But this should point you in the right direction.
Sign In or Register to comment.