diff --git a/EGUI/lab2/lab2/Controllers/Register.cs b/EGUI/lab2/lab2/Controllers/Register.cs
index 91b7018a..a3ab48e1 100644
--- a/EGUI/lab2/lab2/Controllers/Register.cs
+++ b/EGUI/lab2/lab2/Controllers/Register.cs
@@ -1,10 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Net;
+using System.Net.Http;
+using System.Web;
using Microsoft.AspNetCore.Mvc;
using System.Text.Encodings.Web;
-namespace lab2.Controllers
+namespace FormEncode.Controllers
{
public class RegisterController : Controller
{
+
+
+ [HttpPost]
+ [ActionName("Complex")]
+ public IActionResult PostComplex(string id, string blogid, string blogTitle, string mail, string password)
+ {
+ if(id != null && blogid != null && blogTitle != null && mail != null & password != null)
+ {
+ // Convert any HTML markup in the status text.
+ id = HttpUtility.HtmlEncode(id);
+ blogid = HttpUtility.HtmlEncode(blogid);
+ blogTitle = HttpUtility.HtmlEncode(blogTitle);
+ mail = HttpUtility.HtmlEncode(mail);
+ password = HttpUtility.HtmlEncode(password);
+ ViewData["userid"] = "userid: " + id;
+ ViewData["email"] = "email: " + mail;
+ ViewData["password"] = "password: " + password;
+ ViewData["blogid"] = "blogid: " + blogid;
+ ViewData["blogtitle"] = "blogtitle: " + blogTitle;
+ return View();
+ }
+ else return View();
+ }
//
// GET: /Register/
@@ -16,12 +44,13 @@ namespace lab2.Controllers
//
// GET: /Register/RegisterUser/?userid=Rick&email=4&password=test&blogid=blogtest
- public IActionResult RegisterUser(string userid, string email, string password, string blogid)
+ public IActionResult RegisterUser(string userid, string email, string password, string blogid, string blogtitle)
{
ViewData["userid"] = "userid: " + userid;
ViewData["email"] = "email: " + email;
ViewData["password"] = "password: " + password;
ViewData["blogid"] = "blogid: " + blogid;
+ ViewData["blogtitle"] = "blogtitle: " + blogtitle;
return View();
}
}
diff --git a/EGUI/lab2/lab2/Views/Register/Index.cshtml b/EGUI/lab2/lab2/Views/Register/Index.cshtml
index 468789d2..d5c4859a 100644
--- a/EGUI/lab2/lab2/Views/Register/Index.cshtml
+++ b/EGUI/lab2/lab2/Views/Register/Index.cshtml
@@ -2,6 +2,41 @@
ViewData["Title"] = "Register";
}
-
Register
+Register
+
-Hello from our Register Template!
diff --git a/EGUI/lab2/lab2/Views/Register/RegisterUser.cshtml b/EGUI/lab2/lab2/Views/Register/RegisterUser.cshtml
index f4c6c628..59347471 100644
--- a/EGUI/lab2/lab2/Views/Register/RegisterUser.cshtml
+++ b/EGUI/lab2/lab2/Views/Register/RegisterUser.cshtml
@@ -9,4 +9,5 @@
@ViewData["email"]
@ViewData["password"]
@ViewData["blogid"]
+ @ViewData["blogtitle"]
\ No newline at end of file
diff --git a/EGUI/lab2/lab2/Views/Shared/_Layout.cshtml b/EGUI/lab2/lab2/Views/Shared/_Layout.cshtml
index 988dd8fe..9b8f410b 100644
--- a/EGUI/lab2/lab2/Views/Shared/_Layout.cshtml
+++ b/EGUI/lab2/lab2/Views/Shared/_Layout.cshtml
@@ -23,7 +23,10 @@
Home
- Privacy
+ Register
+
+
+ Login
diff --git a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2 b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2
index cfcfa667..286a928a 100755
Binary files a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2 and b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2 differ
diff --git a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.dll b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.dll
index 674f9352..a5742067 100644
Binary files a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.dll and b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.dll differ
diff --git a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.pdb b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.pdb
index aa8fab44..1e28e417 100644
Binary files a/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.pdb and b/EGUI/lab2/lab2/bin/Debug/net6.0/lab2.pdb differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/apphost b/EGUI/lab2/lab2/obj/Debug/net6.0/apphost
index cfcfa667..286a928a 100755
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/apphost and b/EGUI/lab2/lab2/obj/Debug/net6.0/apphost differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.assets.cache b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.assets.cache
index 12246863..71ed30c9 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.assets.cache and b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.assets.cache differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.AssemblyReference.cache b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.AssemblyReference.cache
index dc292df7..493bd826 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.AssemblyReference.cache and b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.AssemblyReference.cache differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.CoreCompileInputs.cache b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.CoreCompileInputs.cache
index 73f1f45e..061b487c 100644
--- a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.CoreCompileInputs.cache
+++ b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-70b71697a5ec415c0ebed0daa8e14dda5e094eb8
+393e1f8b6bf5d7d5fba35fe38d449ed26c8ed933
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.dll b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.dll
index 674f9352..a5742067 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.dll and b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.dll differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.pdb b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.pdb
index aa8fab44..1e28e417 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.pdb and b/EGUI/lab2/lab2/obj/Debug/net6.0/lab2.pdb differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/ref/lab2.dll b/EGUI/lab2/lab2/obj/Debug/net6.0/ref/lab2.dll
index 5a2d3d46..7b7b8840 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/ref/lab2.dll and b/EGUI/lab2/lab2/obj/Debug/net6.0/ref/lab2.dll differ
diff --git a/EGUI/lab2/lab2/obj/Debug/net6.0/refint/lab2.dll b/EGUI/lab2/lab2/obj/Debug/net6.0/refint/lab2.dll
index 5a2d3d46..7b7b8840 100644
Binary files a/EGUI/lab2/lab2/obj/Debug/net6.0/refint/lab2.dll and b/EGUI/lab2/lab2/obj/Debug/net6.0/refint/lab2.dll differ
diff --git a/EGUI/lab2/lab2/obj/lab2.csproj.nuget.dgspec.json b/EGUI/lab2/lab2/obj/lab2.csproj.nuget.dgspec.json
index d844f0de..06f5c105 100644
--- a/EGUI/lab2/lab2/obj/lab2.csproj.nuget.dgspec.json
+++ b/EGUI/lab2/lab2/obj/lab2.csproj.nuget.dgspec.json
@@ -75,7 +75,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.202/RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.300/RuntimeIdentifierGraph.json"
}
}
}
diff --git a/EGUI/lab2/lab2/obj/lab2.csproj.nuget.g.props b/EGUI/lab2/lab2/obj/lab2.csproj.nuget.g.props
index d14a236f..794fdd3f 100644
--- a/EGUI/lab2/lab2/obj/lab2.csproj.nuget.g.props
+++ b/EGUI/lab2/lab2/obj/lab2.csproj.nuget.g.props
@@ -7,7 +7,7 @@
/home/kuchy/.nuget/packages/
/home/kuchy/.nuget/packages/
PackageReference
- 6.1.0
+ 6.2.0
diff --git a/EGUI/lab2/lab2/obj/project.assets.json b/EGUI/lab2/lab2/obj/project.assets.json
index 7972b342..5a82f47e 100644
--- a/EGUI/lab2/lab2/obj/project.assets.json
+++ b/EGUI/lab2/lab2/obj/project.assets.json
@@ -9889,7 +9889,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.202/RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.300/RuntimeIdentifierGraph.json"
}
}
}
diff --git a/EGUI/lab2/lab2/obj/project.nuget.cache b/EGUI/lab2/lab2/obj/project.nuget.cache
index a8028618..d69424e1 100644
--- a/EGUI/lab2/lab2/obj/project.nuget.cache
+++ b/EGUI/lab2/lab2/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "1632gBteYOY/wuKfaB4Ze7rFUdvN/1i4RIiSUg56/e/EDauVmdxXWnHWizQYK4cFCwsNnU/EL37tlxJobl42WQ==",
+ "dgSpecHash": "eyEvKzMudpqP82Z+w6bg2nOaLduaGey2m4CAR19Eah9o8DIOSuc+ucHN9H/hvyyzQRWe2p/O2oPHE4qMnzW5+Q==",
"success": true,
"projectFilePath": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab2/lab2/lab2.csproj",
"expectedPackageFiles": [
diff --git a/EGUI/lab2/lab2/obj/staticwebassets.pack.sentinel b/EGUI/lab2/lab2/obj/staticwebassets.pack.sentinel
index 0481e91c..a8912143 100644
--- a/EGUI/lab2/lab2/obj/staticwebassets.pack.sentinel
+++ b/EGUI/lab2/lab2/obj/staticwebassets.pack.sentinel
@@ -31,3 +31,8 @@
2.0
2.0
2.0
+2.0
+2.0
+2.0
+2.0
+2.0