Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Pin Code Lock/pin-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function onResponse(code) {
if (code === PIN_CODE)
{
console.log('pin correct');
xapi.config.set('UserInterface Features HideAll', 'False');
}
else {
console.log('pin failed');
Expand All @@ -35,7 +36,10 @@ function listenToEvents() {
}
});
xapi.status.on('Standby State', (state) => {
if (state === 'Off') askForPin();
if (state === 'Off') {
xapi.config.set('UserInterface Features HideAll', 'True');
askForPin();
}
});
}

Expand Down