forked from Moux23333/FreeSR
remove unused code
This commit is contained in:
parent
355cf9a836
commit
a8c597104e
2 changed files with 0 additions and 55 deletions
|
@ -1,32 +0,0 @@
|
||||||
namespace FreeSR.Dispatch.Handlers.Sdk
|
|
||||||
{
|
|
||||||
using Ceen;
|
|
||||||
using FreeSR.Database;
|
|
||||||
using FreeSR.Database.Account;
|
|
||||||
|
|
||||||
internal class CreateAccountHandler : IHttpModule
|
|
||||||
{
|
|
||||||
public async Task<bool> HandleAsync(IHttpContext context)
|
|
||||||
{
|
|
||||||
var query = context.Request.QueryString;
|
|
||||||
|
|
||||||
var name = query["user"];
|
|
||||||
var password = query["pass"];
|
|
||||||
|
|
||||||
var database = DatabaseManager.Instance.Get<AccountDatabase>();
|
|
||||||
var account = await database.Create(name, password);
|
|
||||||
|
|
||||||
context.Response.StatusCode = HttpStatusCode.OK;
|
|
||||||
if (account == null)
|
|
||||||
{
|
|
||||||
await context.Response.WriteAllAsync("Sorry, this username is already taken.", "text/plain");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
await context.Response.WriteAllAsync($"Successfully created account with name {account.Name}, uid: {account.Uid}", "text/plain");
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
23
FreeSR.sln
23
FreeSR.sln
|
@ -15,14 +15,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{C07D30E9
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSR.Tool.Proxy", "FreeSR.Tool.Proxy\FreeSR.Tool.Proxy.csproj", "{11A573ED-C01C-42E3-9130-6E04E4A8DD17}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSR.Tool.Proxy", "FreeSR.Tool.Proxy\FreeSR.Tool.Proxy.csproj", "{11A573ED-C01C-42E3-9130-6E04E4A8DD17}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Database", "Database", "{CFA0B752-6955-4991-AA1E-92D67F720C12}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSR.Database", "FreeSR.Database\FreeSR.Database.csproj", "{5CD88C90-31BB-40D9-812B-A347B96D9C8A}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSR.Database.Account", "FreeSR.Database.Account\FreeSR.Database.Account.csproj", "{EF0DF7FB-F570-4847-B0BE-CBB98529111A}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSR.Admin", "FreeSR.Admin\FreeSR.Admin.csproj", "{343019DD-8928-447C-A8E4-7FFE92BC823E}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FreeSR.Gateserver", "FreeSR.Gateserver\FreeSR.Gateserver.csproj", "{AF8975EC-2283-47A8-84BC-646AB99830E7}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FreeSR.Gateserver", "FreeSR.Gateserver\FreeSR.Gateserver.csproj", "{AF8975EC-2283-47A8-84BC-646AB99830E7}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
@ -47,18 +39,6 @@ Global
|
||||||
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Release|Any CPU.Build.0 = Release|Any CPU
|
{11A573ED-C01C-42E3-9130-6E04E4A8DD17}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{5CD88C90-31BB-40D9-812B-A347B96D9C8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{5CD88C90-31BB-40D9-812B-A347B96D9C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{5CD88C90-31BB-40D9-812B-A347B96D9C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{5CD88C90-31BB-40D9-812B-A347B96D9C8A}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{EF0DF7FB-F570-4847-B0BE-CBB98529111A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{EF0DF7FB-F570-4847-B0BE-CBB98529111A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{EF0DF7FB-F570-4847-B0BE-CBB98529111A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{EF0DF7FB-F570-4847-B0BE-CBB98529111A}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{343019DD-8928-447C-A8E4-7FFE92BC823E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{343019DD-8928-447C-A8E4-7FFE92BC823E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{343019DD-8928-447C-A8E4-7FFE92BC823E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{343019DD-8928-447C-A8E4-7FFE92BC823E}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{AF8975EC-2283-47A8-84BC-646AB99830E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
@ -70,9 +50,6 @@ Global
|
||||||
GlobalSection(NestedProjects) = preSolution
|
GlobalSection(NestedProjects) = preSolution
|
||||||
{3FAA4180-015C-4E63-BA3F-6AF826FEC6F6} = {F9800F84-180D-49D6-9D65-D9A1C5D4797D}
|
{3FAA4180-015C-4E63-BA3F-6AF826FEC6F6} = {F9800F84-180D-49D6-9D65-D9A1C5D4797D}
|
||||||
{11A573ED-C01C-42E3-9130-6E04E4A8DD17} = {C07D30E9-B7F8-43D6-B338-FF860D4B06D1}
|
{11A573ED-C01C-42E3-9130-6E04E4A8DD17} = {C07D30E9-B7F8-43D6-B338-FF860D4B06D1}
|
||||||
{5CD88C90-31BB-40D9-812B-A347B96D9C8A} = {CFA0B752-6955-4991-AA1E-92D67F720C12}
|
|
||||||
{EF0DF7FB-F570-4847-B0BE-CBB98529111A} = {CFA0B752-6955-4991-AA1E-92D67F720C12}
|
|
||||||
{343019DD-8928-447C-A8E4-7FFE92BC823E} = {F9800F84-180D-49D6-9D65-D9A1C5D4797D}
|
|
||||||
{AF8975EC-2283-47A8-84BC-646AB99830E7} = {F9800F84-180D-49D6-9D65-D9A1C5D4797D}
|
{AF8975EC-2283-47A8-84BC-646AB99830E7} = {F9800F84-180D-49D6-9D65-D9A1C5D4797D}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
|
Reference in a new issue