@@ -2092,6 +2092,9 @@ public static function process_auth_form() {
$authenticated = self::set_current_reader( $user->ID );
$payload['authenticated'] = \is_wp_error( $authenticated ) ? 0 : 1;
$payload['existing_user'] = \is_wp_error( $authenticated ) ? 0 : 1;
+ if ( ! \is_wp_error( $authenticated ) ) {
+ $payload['verified'] = self::is_reader_verified( $user );
+ }
$metadata['login_method'] = 'auth-form-password';
break;
case 'link':
diff --git a/src/blocks/reader-registration/block.json b/src/blocks/reader-registration/block.json
index e7302bcc6c..ba96bdae5d 100644
--- a/src/blocks/reader-registration/block.json
+++ b/src/blocks/reader-registration/block.json
@@ -19,7 +19,7 @@
},
"label": {
"type": "string",
- "default": "Sign up",
+ "default": "Continue",
"required": true
},
"privacyLabel": {
@@ -52,14 +52,6 @@
"listsCheckboxes": {
"type": "object",
"default": {}
- },
- "signInLabel": {
- "type": "string",
- "default": "Sign in to an existing account"
- },
- "signedInLabel": {
- "type": "string",
- "default": "An account was already registered with this email. Please check your inbox for an authentication link."
}
},
"supports": {
diff --git a/src/blocks/reader-registration/edit.js b/src/blocks/reader-registration/edit.js
index 9c4d95598a..6c37868d7d 100644
--- a/src/blocks/reader-registration/edit.js
+++ b/src/blocks/reader-registration/edit.js
@@ -19,7 +19,6 @@ import { Icon, check } from '@wordpress/icons';
* Internal dependencies
*/
import './editor.scss';
-import { emailSend } from '../../../packages/icons';
const getListCheckboxId = listId => {
return 'newspack-reader-registration-list-checkbox-' + listId;
@@ -28,7 +27,6 @@ const getListCheckboxId = listId => {
const editedStateOptions = [
{ label: __( 'Initial', 'newspack-plugin' ), value: 'initial' },
{ label: __( 'Registration Success', 'newspack-plugin' ), value: 'registration' },
- { label: __( 'Login Success', 'newspack-plugin' ), value: 'login' },
];
export default function ReaderRegistrationEdit( {
setAttributes,
@@ -42,8 +40,6 @@ export default function ReaderRegistrationEdit( {
displayListDescription,
hideSubscriptionInput,
newsletterLabel,
- signInLabel,
- signedInLabel,
lists,
listsCheckboxes,
},
@@ -292,7 +288,7 @@ export default function ReaderRegistrationEdit( {
__html: newspack_blocks.google_logo_svg,
} }
/>
- { __( 'Sign in with Google', 'newspack-plugin' ) }
+ { __( 'Continue with Google', 'newspack-plugin' ) }
{ __( 'Or', 'newspack-plugin' ) }
@@ -303,7 +299,7 @@ export default function ReaderRegistrationEdit( {