Merge pull request #23 from unraid/fix/plg-remove-email-on-signout

fix(plg): on sign out remove email dynamix.cfg
This commit is contained in:
Eric Schultz
2020-10-22 16:30:06 -06:00
committed by GitHub
+8 -1
View File
@@ -1170,7 +1170,14 @@ function handleMessage(e) {
});
break;
case "MYSERVERS_UNREGISTER":
$.post('/update.php', {'#file': 'dynamix/dynamix.cfg', '#section': 'remote', apikey: '', username: '', avatar: ''}, function() {
$.post('/update.php', {
'#file': 'dynamix/dynamix.cfg',
'#section': 'remote',
apikey: '',
avatar: '',
email: '',
username: '',
}, function() {
console.log('dynamix/dynamix.cfg: Unregistered myservers, cleared apikey under [remote] section');
// send a ping back to the regwiz
const payload = { event: 'ACCOUNT_PINGBACK', success: true, type: 'signOut', };