mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4039351
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web.Security;
|
|
|
|
namespace Orchard.Security {
|
|
public interface IMembershipService : IDependency {
|
|
void ReadSettings(MembershipSettings settings);
|
|
|
|
IUser CreateUser(CreateUserParams createUserParams);
|
|
IUser GetUser(string username);
|
|
}
|
|
|
|
public class MembershipSettings {
|
|
public bool EnablePasswordRetrieval { get; set; }
|
|
public bool EnablePasswordReset { get; set; }
|
|
public bool RequiresQuestionAndAnswer { get; set; }
|
|
public int MaxInvalidPasswordAttempts { get; set; }
|
|
public int PasswordAttemptWindow { get; set; }
|
|
public bool RequiresUniqueEmail { get; set; }
|
|
public MembershipPasswordFormat PasswordFormat { get; set; }
|
|
public int MinRequiredPasswordLength { get; set; }
|
|
public int MinRequiredNonAlphanumericCharacters { get; set; }
|
|
public string PasswordStrengthRegularExpression { get; set; }
|
|
}
|
|
}
|