object_type = author
field_name = pauseid
diff --git a/root/account/turing.tx b/root/account/turing.tx
deleted file mode 100644
index ca29640c2b6..00000000000
--- a/root/account/turing.tx
+++ /dev/null
@@ -1,24 +0,0 @@
-%% cascade base::account
-%% override content -> {
- %% if $error {
-
-
Error
- The answer was not correct. Please try again..
-
- %% }
- %% if $success {
-
-
Success
- Thank you.
-
- Continue browsing
- %% }
- %% else {
-
- %% }
-%% }
diff --git a/root/base/account.tx b/root/base/account.tx
index 6dc339831dd..2c146f9c936 100644
--- a/root/base/account.tx
+++ b/root/base/account.tx
@@ -3,11 +3,6 @@
%% }
%% override left_nav_classes -> { 'nav nav-pills nav-stacked' }
%% override left_nav_content -> {
-%% if !$user.looks_human {
-
- Verify Account
-
-%% }
Identities
diff --git a/root/static/js/cpan.js b/root/static/js/cpan.js
index f3f3ee0b463..25a5144030c 100644
--- a/root/static/js/cpan.js
+++ b/root/static/js/cpan.js
@@ -236,9 +236,7 @@ for (const favForm of document.querySelectorAll('form[action="/account/favorite/
body: formData,
});
if (!response.ok) {
- if (confirm("You have to complete a Captcha in order to ++.")) {
- document.location.href = "/account/turing";
- }
+ alert("Error adding favorite!");
}
const button = favForm.querySelector('button');
diff --git a/root/static/js/main.mjs b/root/static/js/main.mjs
index 764bf025559..4abdbbb2c1f 100644
--- a/root/static/js/main.mjs
+++ b/root/static/js/main.mjs
@@ -5,7 +5,6 @@ import './cpan.js';
import './github.js';
import './dropdown.js';
import './profile.js';
-import './recaptcha.mjs';
import './search.js';
import 'bootstrap/js/dropdown.js';
import 'bootstrap/js/collapse.js';
diff --git a/root/static/js/recaptcha.mjs b/root/static/js/recaptcha.mjs
deleted file mode 100644
index 60d59d451ac..00000000000
--- a/root/static/js/recaptcha.mjs
+++ /dev/null
@@ -1,23 +0,0 @@
-function recaptcha_prepare() {
- return new Promise((resolve, reject) => {
- const recaptcha_script = document.createElement('script');
- recaptcha_script.setAttribute('async', '');
- recaptcha_script.setAttribute('defer', '');
- recaptcha_script.setAttribute('src', 'https://www.google.com/recaptcha/api.js?render=explicit');
- recaptcha_script.addEventListener('load', () => {
- window.grecaptcha.ready(() => resolve(window.grecaptcha));
- });
- recaptcha_script.addEventListener('error', () => reject('Error loading reCAPTCHA'));
- document.head.appendChild(recaptcha_script);
- });
-}
-
-const recaptcha_div = document.querySelector('.g-recaptcha');
-if (recaptcha_div) {
- const recaptcha_form = recaptcha_div.closest('form');
-
- const grecaptcha = await recaptcha_prepare();
- grecaptcha.render(recaptcha_div, {
- callback: () => recaptcha_form.submit()
- });
-}
diff --git a/t/controller/account.t b/t/controller/account.t
index 607e390464c..cc4adcae237 100644
--- a/t/controller/account.t
+++ b/t/controller/account.t
@@ -85,10 +85,7 @@ test_psgi app, sub {
};
# (we're always authenticated from now on)
- $user_res = {
- looks_human => \1,
- id => '5',
- };
+ $user_res = { id => '5', };
subtest 'GET profile' => sub {
$api_res = { error => 'broken' };
diff --git a/t/html.t b/t/html.t
index bbb5d1f04f0..5d837ed3a84 100644
--- a/t/html.t
+++ b/t/html.t
@@ -9,8 +9,7 @@ use Path::Tiny qw( path );
# files that have inline