Skip to content

Commit

Permalink
Use recaptcha_ajax.js directly from Google
Browse files Browse the repository at this point in the history
The script recaptcha_ajax.js contains minified non-free code which
we probably cannot redistribute. Since it talks to Google servers
anyway, it is better to just download it from Google directly instead
of shipping it.

This fixes matrix-org#1932.
  • Loading branch information
andrewshadura committed Aug 10, 2018
1 parent 67dbe4c commit c75b71a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 196 deletions.
1 change: 1 addition & 0 deletions changelog.d/1932.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don’t ship recaptcha_ajax.js, use it directly from Google
2 changes: 1 addition & 1 deletion synapse/static/client/register/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'>
<link rel="stylesheet" href="style.css">
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/recaptcha_ajax.js"></script>
<script src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script src="register_config.js"></script>
<script src="js/register.js"></script>
</head>
Expand Down
Loading

0 comments on commit c75b71a

Please sign in to comment.