Browse Source

Still not working...

master
Teknikode 6 years ago
parent
commit
0055dc9395
  1. 1
      Teknik/Areas/Profile/Controllers/ProfileController.cs
  2. 2
      Teknik/Web.config

1
Teknik/Areas/Profile/Controllers/ProfileController.cs

@ -140,6 +140,7 @@ namespace Teknik.Areas.Profile.Controllers @@ -140,6 +140,7 @@ namespace Teknik.Areas.Profile.Controllers
HttpCookie authcookie = FormsAuthentication.GetAuthCookie(model.Username, model.RememberMe);
authcookie.Name = ".TeknikAuth";
authcookie.Domain = Config.Host;
authcookie.Secure = true;
Response.AppendCookie(authcookie);
if (string.IsNullOrEmpty(model.ReturnUrl))

2
Teknik/Web.config

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms domain=".teknik.io" loginUrl="~/Areas/Profile/Views/Profile/ViewLogin" path="*/*" timeout="2880" name=".TeknikAuth" />
<forms domain=".teknik.io" path="/" timeout="2880" requireSSL="true" enableCrossAppRedirects="true" name=".TeknikAuth" />
</authentication>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" maxRequestLength="1048576" />

Loading…
Cancel
Save