Update cookie name

This commit is contained in:
John Luo 2016-03-02 14:39:12 -08:00
parent 4792719236
commit c8849685cf
1 changed files with 5 additions and 4 deletions

View File

@ -13,10 +13,11 @@ namespace Microsoft.AspNetCore.Identity
/// </summary> /// </summary>
public class IdentityCookieOptions public class IdentityCookieOptions
{ {
private static readonly string DefaultApplicationScheme = typeof(IdentityCookieOptions).Namespace + ".Application"; private static readonly string CookiePrefix = ".AspNetCore.Identity";
private static readonly string DefaultExternalScheme = typeof(IdentityCookieOptions).Namespace + ".External"; private static readonly string DefaultApplicationScheme = CookiePrefix + ".Application";
private static readonly string DefaultTwoFactorRememberMeScheme = typeof(IdentityCookieOptions).Namespace + ".TwoFactorRememberMe"; private static readonly string DefaultExternalScheme = CookiePrefix + ".External";
private static readonly string DefaultTwoFactorUserIdScheme = typeof(IdentityCookieOptions).Namespace + ".TwoFactorUserId"; private static readonly string DefaultTwoFactorRememberMeScheme = CookiePrefix + ".TwoFactorRememberMe";
private static readonly string DefaultTwoFactorUserIdScheme = CookiePrefix + ".TwoFactorUserId";
public IdentityCookieOptions() public IdentityCookieOptions()
{ {