Change Forms Auth Cookie. Fixes #285

This commit is contained in:
Leonardo Galli 2017-01-22 18:18:15 +01:00
parent eb299ce847
commit 12e74aa38b
2 changed files with 1055 additions and 1053 deletions

View File

@ -64,6 +64,8 @@ namespace NzbDrone.Api.Authentication
new DefaultHmacProvider(new PassphraseKeyGenerator(_configService.HmacPassphrase, Encoding.ASCII.GetBytes(_configService.HmacSalt))) new DefaultHmacProvider(new PassphraseKeyGenerator(_configService.HmacPassphrase, Encoding.ASCII.GetBytes(_configService.HmacSalt)))
); );
FormsAuthentication.FormsAuthenticationCookieName = "_ncfaradarr"; //For those people that both have sonarr and radarr.
FormsAuthentication.Enable(pipelines, new FormsAuthenticationConfiguration FormsAuthentication.Enable(pipelines, new FormsAuthenticationConfiguration
{ {
RedirectUrl = _configFileProvider.UrlBase + "/login", RedirectUrl = _configFileProvider.UrlBase + "/login",

File diff suppressed because it is too large Load Diff