const minisrv_service_file = true; // security if (session_data.user_id != 0 && session_data.user_id != request_headers.query.user_id) { const errpage = wtvshared.doErrorPage(400, "You are not authorized to transfer this account. Please log in as the primary user."); headers = errpage[0]; data = errpage[1]; } if (!session_data.getUserPasswordEnabled()) { const passwordRequired = new clientShowAlert({ 'image': minisrv_config.config.service_logo, 'message': "For security, you must first set a password on your account before you can transfer it.", 'buttonlabel1': "Set Password", 'buttonaction1': "wtv-setup:/edit-password", 'buttonlabel2': "Cancel", 'buttonaction2': "client:donothing", 'noback': true, }).getURL(); const errpage = wtvshared.doRedirect(passwordRequired); headers = errpage[0]; data = errpage[1]; } else if (session_data.getUserPasswordEnabled() && session_data.user_id === 0) { headers = `200 OK Connection: Keep-Alive Content-Type: text/html wtv-expire-all: wtv-setup:/transfer-account wtv-noback-all: wtv-setup:/transfer-account`; data = ` Transfer your account
Transfer your account

Enter the SSID of the target box, and the current primary user's password.
SSID

Primary User Password

` }