aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/UniteSignupDialog.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-08 11:31:20 -0400
committerMichael <[email protected]>2017-05-08 11:31:29 -0400
commit75ed7e9215ba88358d9b838dd82fa3841f78ae5a (patch)
treee976fbb38056e38fcd8393c3efcfe3db12f3c4b0 /ShiftOS.WinForms/UniteSignupDialog.cs
parent4a5db39ea7c0b9be342261ab416dbb5edf50b2ce (diff)
downloadshiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.tar.gz
shiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.tar.bz2
shiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.zip
Fix softlocks on pre-user OOBE.
Diffstat (limited to 'ShiftOS.WinForms/UniteSignupDialog.cs')
-rw-r--r--ShiftOS.WinForms/UniteSignupDialog.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/UniteSignupDialog.cs b/ShiftOS.WinForms/UniteSignupDialog.cs
index a46a9b0..7d0fd33 100644
--- a/ShiftOS.WinForms/UniteSignupDialog.cs
+++ b/ShiftOS.WinForms/UniteSignupDialog.cs
@@ -10,6 +10,7 @@ using System.Windows.Forms;
using ShiftOS.Engine;
using Newtonsoft.Json;
using System.Net;
+using ShiftOS.Objects;
namespace ShiftOS.WinForms
{
@@ -99,7 +100,7 @@ namespace ShiftOS.WinForms
try
{
- var webrequest = HttpWebRequest.Create("http://getshiftos.ml/Auth/Register?appname=ShiftOS&appdesc=ShiftOS+client&version=1_0_beta_2_4&displayname=" + txtdisplay.Text + "&sysname=" + txtsysname.Text);
+ var webrequest = HttpWebRequest.Create(UserConfig.Get().UniteUrl + "/Auth/Register?appname=ShiftOS&appdesc=ShiftOS+client&version=1_0_beta_2_4&displayname=" + txtdisplay.Text + "&sysname=" + txtsysname.Text);
string base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{u}:{p}"));
webrequest.Headers.Add("Authentication: Basic " + base64);
var response = webrequest.GetResponse();