/*************************************************************************************************/ private void CalculatePasswordComplexity(string password) { PasswordComplexityLevel passwordComplexityLevel = PasswordComplexityLevel.Weak; passwordComplexityLevel = PasswordComplexity.checkEffectiveBitSize(password.Length, password); _loginView.DisplayPasswordComplexity(passwordComplexityLevel); }
/*================================================================================================= * PUBLIC METHODS *================================================================================================*/ /*************************************************************************************************/ /*================================================================================================= * PRIVATE METHODS *================================================================================================*/ /*************************************************************************************************/ private void PasswordTextChanged(string passwordText) { PasswordComplexityLevel passwordComplexityLevel = PasswordComplexityLevel.Weak; passwordComplexityLevel = PasswordComplexity.checkEffectiveBitSize(passwordText.Length, passwordText); _changePasswordView.DisplayPasswordComplexity(passwordComplexityLevel); }