fix: restore native form submission for OTT login
Signed-off-by: Anantha Krishnan <ananthakrishnanj2001@gmail.com>
This commit is contained in:
committed by
Josh Cummings
parent
229eb3ea46
commit
245733a631
+1
-1
@@ -604,7 +604,7 @@ public class DefaultLoginPageGeneratingFilter extends GenericFilterBean {
|
||||
{{usernameInput}}
|
||||
</p>
|
||||
{{hiddenInputs}}
|
||||
<button class="primary" type="submit" form="ott-form">Send Token</button>
|
||||
<button class="primary" type="submit">Send Token</button>
|
||||
</form>
|
||||
""";
|
||||
|
||||
|
||||
+3
-3
@@ -199,7 +199,7 @@ public class DefaultLoginPageGeneratingFilterTests {
|
||||
<input type="text" id="ott-username" name="username" placeholder="Username" required>
|
||||
</p>
|
||||
|
||||
<button class="primary" type="submit" form="ott-form">Send Token</button>
|
||||
<button class="primary" type="submit">Send Token</button>
|
||||
</form>
|
||||
""");
|
||||
}
|
||||
@@ -225,7 +225,7 @@ public class DefaultLoginPageGeneratingFilterTests {
|
||||
<input type="text" id="ott-username" name="username" placeholder="Username" required>
|
||||
</p>
|
||||
|
||||
<button class="primary" type="submit" form="ott-form">Send Token</button>
|
||||
<button class="primary" type="submit">Send Token</button>
|
||||
</form>
|
||||
""");
|
||||
assertThat(response.getContentAsString()).doesNotContain("Password");
|
||||
@@ -254,7 +254,7 @@ public class DefaultLoginPageGeneratingFilterTests {
|
||||
<input type="text" id="ott-username" name="username" placeholder="Username" required>
|
||||
</p>
|
||||
|
||||
<button class="primary" type="submit" form="ott-form">Send Token</button>
|
||||
<button class="primary" type="submit">Send Token</button>
|
||||
</form>
|
||||
""");
|
||||
assertThat(response.getContentAsString()).contains("Password");
|
||||
|
||||
Reference in New Issue
Block a user