Browse Source

Still not working...

tags/2.0.3
Teknikode 4 years ago
parent
commit
0055dc9395
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      Teknik/Areas/Profile/Controllers/ProfileController.cs
  2. 1
    1
      Teknik/Web.config

+ 1
- 0
Teknik/Areas/Profile/Controllers/ProfileController.cs View File

@@ -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))

+ 1
- 1
Teknik/Web.config View File

@@ -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