I'm new to this, but the only way I've found is to delete all the configuration files (typically in /home/hts/.hts/tvheadend/ on linux) and start again!
You may have an issue with logging on the first time, in which case a
$ sudo dpkg-reconfigure tvheadend
allows you to reset the master password.
HTH