Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove unnecessary use of jquery on the recaptcha page. #11406

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed unnecessary jquery and modified changelog.d
  • Loading branch information
ankur12-1610 committed Nov 22, 2021
commit e4d3d882a22e8e49288fd4a02c5931d169cd5ab8
2 changes: 1 addition & 1 deletion changelog.d/11406.bugfix
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Removes unnecessary use of jquery on the recaptcha page.
Removes unnecessary use of jquery on the recaptcha page from `synapse/synapse/res/templates/recaptcha.html`.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this will mean much to the average synapse admin. It would be better to say where this page is used.

I believe it's the fallback page for clients which don't support recaptcha themselves? Have you been able to test it, at all?

Copy link
Author

@ankur12-1610 ankur12-1610 Nov 24, 2021

Choose a reason for hiding this comment

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

@richvdh I ran the local server but I'm unable to test it, I'm unable to find the correct path of the page.
error

This is the url http://localhost:8080/_matrix/static/ what should be the path to append if I want to test this feature? :' )

Copy link
Member

Choose a reason for hiding this comment

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

http://localhost:8008/_matrix/client/v3/auth/m.login.recaptcha/fallback/web?session=abc is the location of the recaptcha fallback page, which should load the contents of the configured recaptcha.html template.

This was a discussion on how to test this manually locally in #synapse-dev here: https://matrix.to/#/!XaqDhxuTIlvldquJaV:matrix.org/$xWMp0Ah_BKfWz9IxE7uUP2Tpzanem6hdDJjRaxsXGNI?via=matrix.org&via=vector.modular.im&via=envs.net

1 change: 0 additions & 1 deletion synapse/res/templates/recaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'>
<script src="https://www.recaptcha.net/recaptcha/api.js"
async defer></script>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="/_matrix/static/client/register/style.css">
<script>
function captchaDone() {
Expand Down