Ejemplo n.º 1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(120, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 6 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeLogin.cshtml"

            Layout = null;

#line default
#line hidden
            BeginContext(145, 25, true);
            WriteLiteral("\n<!DOCTYPE html>\n\n<html>\n");
            EndContext();
            BeginContext(170, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f8107b22c3f64cccbcdc6e6cf55b2a19", async() => {
                BeginContext(176, 60, true);
                WriteLiteral("\n    <title>If you see this, you have slow Internet</title>\n");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(243, 1, true);
            WriteLiteral("\n");
            EndContext();
            BeginContext(244, 739, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e5b76d490c1410bb6a04f258e3e13b6", async() => {
                BeginContext(250, 7, true);
                WriteLiteral("\n<div>\n");
                EndContext();
#line 18 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeLogin.cshtml"

                Uzivatel tmp = new Uzivatel();
                var email    = Request.Form["email"];
                var heslo    = Request.Form["heslo"];
                tmp.Email    = email;
                tmp.Heslo    = heslo;
                tmp          = UzivatelTableProxy.Select(tmp);
                if (tmp.Nick == null)
                {
                    Response.Redirect("/Login");
                }
                else
                {
                    Response.Cookies.Append("nick", tmp.Nick);
                    Response.Cookies.Append("obec", tmp.ObecId.ToString());
                    Response.Cookies.Append("uzivatelId", tmp.UzivatelId.ToString());
                    Response.Cookies.Append("ban", tmp.Ban.ToString());
                    var nick = Request.Cookies["nick"];
                    Response.Redirect("/Index");
                }


#line default
#line hidden
                BeginContext(969, 7, true);
                WriteLiteral("</div>\n");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(983, 8, true);
            WriteLiteral("\n</html>");
            EndContext();
        }
Ejemplo n.º 2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(123, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 6 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeRegister.cshtml"

            Layout = null;

#line default
#line hidden
            BeginContext(148, 25, true);
            WriteLiteral("\n<!DOCTYPE html>\n\n<html>\n");
            EndContext();
            BeginContext(173, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ada8cc31f9e0473fb2fee6ca7eecc3b4", async() => {
                BeginContext(179, 21, true);
                WriteLiteral("\n    <title></title>\n");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(207, 1, true);
            WriteLiteral("\n");
            EndContext();
            BeginContext(208, 752, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2993df20fcbd43d4892103ebbe323552", async() => {
                BeginContext(214, 7, true);
                WriteLiteral("\n<div>\n");
                EndContext();
#line 18 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeRegister.cshtml"

                Uzivatel tmp      = new Uzivatel();
                var jmeno         = Request.Form["jmeno"];
                var heslo         = Request.Form["heslo"];
                var hesloZnova    = Request.Form["hesloZnova"];
                var email         = Request.Form["email"];
                var datumNarozeni = Convert.ToDateTime(Request.Form["datumNarozeni"]);
                var obecId        = Convert.ToInt32(Request.Form["obecId"]);
                tmp.Nick          = jmeno;
                tmp.Heslo         = heslo;
                tmp.Email         = email;
                tmp.DatumNarozeni = datumNarozeni;
                tmp.ObecId        = obecId;
//        Console.WriteLine("shit"+tmp.Nick+ " " +tmp.Email+" " +tmp.Heslo+" " +tmp.ObecId+" " +tmp.DatumNarozeni);
                UzivatelTableProxy.Insert(tmp);
                Response.Redirect("/Index");


#line default
#line hidden
                BeginContext(941, 12, true);
                WriteLiteral("    \n</div>\n");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(960, 8, true);
            WriteLiteral("\n</html>");
            EndContext();
        }