// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNet.Identity
{
public class LockoutOptions
{
///
/// If true, will enable user lockout when users are created
///
public bool EnabledByDefault { get; set; } = false;
///
/// Number of access attempts allowed for a user before lockout (if enabled)
///
public int MaxFailedAccessAttempts { get; set; } = 5;
///
/// Default amount of time an user is locked out for after MaxFailedAccessAttempsBeforeLockout is reached
///
public TimeSpan DefaultLockoutTimeSpan { get; set; } = TimeSpan.FromMinutes(5);
}
}