diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index 24bf2eb7a..30b5c9903 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -817,7 +817,7 @@ response_complete($httpcode, '{}'); function showRegWizard() { Shadowbox.open({ - content:'https://dev.d1eohvtyc6gnee.amplifyapp.com/?ts=&guid=&state=&keyfile=®gen=&flashproduct=&flashvendor=®istered=&servername=&serverip=&internalport=&protocol=&site='+location.origin, + content:'https://dev.d1eohvtyc6gnee.amplifyapp.com/?ts=&guid=&state=&keyfile=®gen=&flashproduct=&flashvendor=®istered=&servername=&serverip=&internalport=&protocol=&site='+location.origin+'&email=', player: 'iframe', options: {modal: true, animate: false, displayNav: false, overlayOpacity: 0.8, viewportPadding: 0, showMovieControls: false} }); @@ -844,7 +844,11 @@ function handleMessage(e) { break; case "REG_WIZARD": if (data.apikey) { - $.post('/update.php', {'#file': 'dynamix/dynamix.cfg', '#section': 'remote', apikey: data.apikey}, function() { + var postargs = {'#file': 'dynamix/dynamix.cfg', '#section': 'remote', apikey: data.apikey}; + if (data.email) { + postargs['email'] = data.email; + } + $.post('/update.php', postargs, function() { console.log('dynamix/dynamix.cfg: Updated apikey under [remote] section'); }).fail(function() { console.error('Failed to update apikey under [remote] section');