Forum Discussion

joetesta's avatar
joetesta
Roku Guru
13 years ago

Clearing PIN from roRegistry

Hi -
I'm working on adding a PIN feature to our private channel, so that users can restrict access to the channel from others who might share their roku.
I debated whether to store the PIN on our server db or in the roku registry and figure it would be cleaner to just store it on the roku.
Now I have it all pretty much working except I'm wondering what will happen when users forget their PINs.
I tried replacing my dev channel with a new version but it still had the PIN stored in registry from the prior channel so I'm worried that removing & re-adding the channel will not clear the PIN and they'd have to do a factory reset, which is imo not ideal.
Are there any good solutions or suggestions for handling this? I guess ideally the PIN would get wiped from registry when the channel is removed. Or slightly less ideal would be a way for us to retrieve or reset the users PIN through our app somehow (I could add a check for this when it checks the device registration linking) Or worst case we tell them when they set the PIN that the only way to rectify losing it is factory reset.
tyvmia

2 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert
    They're speaking of a side-loaded channel, not a private channel that you added by entering a code on the Roku website. To clear the registry of a private, or public for that matter, channel you have to delete all channels signed by the same developer's key.

    By the way, entering and exiting the Channel Store doesn't appear to clear the dev channel's registry anymore. I had to reboot after deleting the dev channel to clear the dev's registry.

    -JT
  • Thank you very much Mark, that's good news!
    I actually did provide an option to delete the PIN from inside the channel, but if someone forgets the PIN, they can't get into the channel to get to that option.
    I had thought of a way where the registration process could check whether it should delete the PIN, but it would be a pain to add and I'd prefer to tell users they can just remove and re-add the channel in the event they forget their PIN.
    Thanks again!