예제 #1
0
파일: User.cs 프로젝트: Morebis-GIT/CI
        public void ChangePassword(
            string plainTextPassword,
            List <string> bannedPasswordLiteralList,
            List <string> bannedPasswordPatternList)
        {
            // Validate format
            UserPassword.ValidateFormat(plainTextPassword);

            // Validate banned list
            UserPassword.ValidateOnBannedList(plainTextPassword, bannedPasswordLiteralList, bannedPasswordPatternList);

            // Set password
            Password = UserPassword.Hash(plainTextPassword);
        }