SenseNet.ContentRepository.User.CheckPassword C# (CSharp) Method

CheckPassword() public static method

public static CheckPassword ( ContentType contentType, string fieldName, string password, List oldPasswords ) : PasswordCheckResult
contentType SenseNet.ContentRepository.Schema.ContentType
fieldName string
password string
oldPasswords List
return SenseNet.ContentRepository.Fields.PasswordCheckResult
        public static PasswordCheckResult CheckPassword(ContentType contentType, string fieldName, string password, List<PasswordField.OldPasswordData> oldPasswords)
        {
            var pwFieldSetting = contentType.GetFieldSettingByName(fieldName) as PasswordFieldSetting;
            if (pwFieldSetting != null)
                throw new NotSupportedException(string.Format("Cannot check password if the field is not a PasswordField. ContentType: ", contentType, ", field: ", fieldName));
            return pwFieldSetting.CheckPassword(password, oldPasswords);
        }

Same methods

User::CheckPassword ( string password, List oldPasswords ) : PasswordCheckResult