Skip to content

Commit

Permalink
[MSA/AAD] Deprecate password warnings (#5374)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishirx34 authored Jan 30, 2018
1 parent 116b8a6 commit 3ffe186
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Bootstrap/dist/css/bootstrap-theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Bootstrap/less/theme/page-forgot-password.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.page-forgot-password {
.deprecate-alert {
margin-top: -15px;
padding: 0px;
}

.forgot-form {
margin-top: (@padding-large-vertical * 2);
}
Expand Down
4 changes: 4 additions & 0 deletions src/Bootstrap/less/theme/page-sign-in.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.page-sign-in {
.deprecate-alert {
margin-top: -15px;
padding: 0px;
}

.provider-button {
font-size: 16px;
Expand Down
9 changes: 9 additions & 0 deletions src/NuGetGallery/App_Code/ViewHelpers.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@
)
}

@helper AlertPasswordDeprecation()
{
@AlertWarning(
@<text>
NuGet.org password login is being deprecated. Please use Microsoft account to sign into NuGet gallery.
</text>
)
}

@helper AlertPackageVerifyRecommendation()
{
@AlertWarning(
Expand Down
4 changes: 4 additions & 0 deletions src/NuGetGallery/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/NuGetGallery/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ Click the following link within the next hour to reset your password:

[{0}]({0})

Note that NuGet.org password login is being deprecated. Please use Microsoft account to sign into {1}.

Thanks,
The {1} Team</value>
</data>
Expand All @@ -259,6 +261,8 @@ Click the following link within the next hour to set your password:

[{0}]({0})

Note that NuGet.org password login is being deprecated. Please use Microsoft account to sign into {1}.

Thanks,
The {1} Team</value>
</data>
Expand Down
4 changes: 4 additions & 0 deletions src/NuGetGallery/Views/Authentication/Register.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
}

<section role="main" class="container main-container page-sign-in">
<div class="deprecate-alert text-center">
@ViewHelpers.AlertPasswordDeprecation()
</div>

<div class="row">
<div class="@ViewHelpers.GetColumnClasses(ViewBag) text-center">
<h1>Register</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
}

<section role="main" class="container main-container page-sign-in">
<div class="deprecate-alert text-center">
@ViewHelpers.AlertPasswordDeprecation()
</div>

<div class="row">
<div class="col-xs-12 text-center">
<h1>Sign in</h1>
Expand Down
3 changes: 3 additions & 0 deletions src/NuGetGallery/Views/Users/ForgotPassword.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
}

<section role="main" class="container main-container page-forgot-password">
<div class="deprecate-alert text-center">
@ViewHelpers.AlertPasswordDeprecation()
</div>
<div class="row">
<div class="@ViewHelpers.GetColumnClasses(ViewBag) text-center">
<h1>Forgot Password</h1>
Expand Down

0 comments on commit 3ffe186

Please sign in to comment.