Skip to content

Commit 848873b

Browse files
committed
Remove unused <script> and <noscript> tags in One-Time-Token submit page
1 parent 991dde5 commit 848873b

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

web/src/main/java/org/springframework/security/web/authentication/ui/DefaultOneTimeTokenSubmitPageGeneratingFilter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,9 @@ public void setLoginProcessingUrl(String loginProcessingUrl) {
116116
<title>One-Time Token Login</title>
117117
<meta charset="utf-8"/>
118118
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
119-
<meta http-equiv="Content-Security-Policy" content="script-src 'sha256-oZhLbc2kO8b8oaYLrUc7uye1MgVKMyLtPqWR4WtKF+c='"/>
120119
{{cssStyle}}
121120
</head>
122121
<body>
123-
<noscript>
124-
<p>
125-
<strong>Note:</strong> Since your browser does not support JavaScript, you must press the Sign In button once to proceed.
126-
</p>
127-
</noscript>
128122
<div class="container">
129123
<form class="login-form" action="{{loginProcessingUrl}}" method="post">
130124
<h2>Please input the token</h2>

web/src/test/java/org/springframework/security/web/authentication/ui/DefaultOneTimeTokenSubmitPageGeneratingFilterTests.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ void filterThenRenders() throws Exception {
110110
<title>One-Time Token Login</title>
111111
<meta charset="utf-8"/>
112112
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
113-
<meta http-equiv="Content-Security-Policy" content="script-src 'sha256-oZhLbc2kO8b8oaYLrUc7uye1MgVKMyLtPqWR4WtKF+c='"/>
114113
<style>
115114
/* General layout */
116115
body {
@@ -238,11 +237,6 @@ void filterThenRenders() throws Exception {
238237
</style>
239238
</head>
240239
<body>
241-
<noscript>
242-
<p>
243-
<strong>Note:</strong> Since your browser does not support JavaScript, you must press the Sign In button once to proceed.
244-
</p>
245-
</noscript>
246240
<div class="container">
247241
<form class="login-form" action="/login/another" method="post">
248242
<h2>Please input the token</h2>

0 commit comments

Comments
 (0)