Skip to content

Do not use FormattedModelValue in password editor template #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Mar 3, 2018

- #135
- see also PR aspnet/Mvc#7430
- add quirk switch to reverse this if necessary
@@ -731,14 +731,63 @@ public void ObjectTemplateDisplaysNullDisplayTextWithNullModelAndTemplateDepthGr
public void PasswordTemplateTests()
{
Assert.Equal(
"<input class=\"text-box single-line password\" id=\"FieldPrefix\" name=\"FieldPrefix\" type=\"password\" value=\"Value\" />",
"<input class=\"text-box single-line password\" id=\"FieldPrefix\" name=\"FieldPrefix\" type=\"password\" />",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test (well, two tests in one) and the two theories using the data set below set Model and FormattedModelValue. I left similar settings in PasswordTemplate_ReturnsInputElement_IgnoresValues() due to its narrower intent.

@dougbu dougbu merged commit 2b7ac74 into master Mar 5, 2018
@dougbu
Copy link
Member Author

dougbu commented Mar 5, 2018

2b7ac74

@dougbu dougbu deleted the dougbu/edit.password.135 branch March 5, 2018 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants