thobau
Forum Replies Created
-
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailThank you.
No, it doesnt help at all. This information I knew from the beginning. You MUST know who to override it. Its my problem, if user have same email or no email… isn´t it? Why bother you?
Thanky you… but not very helpful
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailHi sorry, not pro in this.
What do you mean by:
where the $user[‘error’] should have a value, which could tell you, why the user creation does not work.
How do i find this out?
THanks very much and much appreciated
TOm
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailAnyone else an idea how to circumvent the mandatory email field?
Cheers
Forum: Plugins
In reply to: [Temporary Login Without Password] Tempr]orary login without passworddoesnt work
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMail`public function create_user() {
if ( empty( $_POST[‘wtlwp_data’] ) || empty( $_POST[‘wtlwp-nonce’] ) || ( ! empty( $_POST[‘wtlwp_action’] ) && ‘update’ === $_POST[‘wtlwp_action’] ) ) {
return;
}$data = $_POST[‘wtlwp_data’];
$email = $data[‘user_email’];
$error = true;
$result = array(
‘status’ => ‘error’,
);$redirect_link = ”;
if ( false == Wp_Temporary_Login_Without_Password_Common::can_manage_wtlwp() ) {
$result[‘message’] = ‘unauthorised_access’;
} elseif ( ! wp_verify_nonce( $_POST[‘wtlwp-nonce’], ‘wtlwp_generate_login_url’ ) ) {
$result[‘message’] = ‘nonce_failed’;
} elseif ( empty( $data[‘user_email’] ) ) {
$result[‘message’] = ’empty_email’;
} elseif ( ! is_email( $email ) ) {
$result[‘message’] = ‘not_valid_email’;
// } elseif ( ! empty( $data[‘user_email’] ) && email_exists( $data[‘user_email’] ) ) {
// $result[‘message’] = ’email_is_in_use’;
} else {
$error = false;
}if ( ! $error ) {
$user = Wp_Temporary_Login_Without_Password_Common::create_new_user( $data );
if ( isset( $user[‘error’] ) && $user[‘error’] === true ) {
$result = array(
‘status’ => ‘error’,
‘message’ => ‘user_creation_failed’,
);
} else {
$result = array(
‘status’ => ‘success’,
‘message’ => ‘user_created’,
);Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailpublic function create_user() {
if ( empty( $_POST[‘wtlwp_data’] ) || empty( $_POST[‘wtlwp-nonce’] ) || ( ! empty( $_POST[‘wtlwp_action’] ) && ‘update’ === $_POST[‘wtlwp_action’] ) ) {
return;
}$data = $_POST[‘wtlwp_data’];
$email = $data[‘user_email’];
$error = true;
$result = array(
‘status’ => ‘error’,
);$redirect_link = ”;
if ( false == Wp_Temporary_Login_Without_Password_Common::can_manage_wtlwp() ) {
$result[‘message’] = ‘unauthorised_access’;
} elseif ( ! wp_verify_nonce( $_POST[‘wtlwp-nonce’], ‘wtlwp_generate_login_url’ ) ) {
$result[‘message’] = ‘nonce_failed’;
} elseif ( empty( $data[‘user_email’] ) ) {
$result[‘message’] = ’empty_email’;
} elseif ( ! is_email( $email ) ) {
$result[‘message’] = ‘not_valid_email’;
// } elseif ( ! empty( $data[‘user_email’] ) && email_exists( $data[‘user_email’] ) ) {
// $result[‘message’] = ’email_is_in_use’;
} else {
$error = false;
}if ( ! $error ) {
$user = Wp_Temporary_Login_Without_Password_Common::create_new_user( $data );
if ( isset( $user[‘error’] ) && $user[‘error’] === true ) {
$result = array(
‘status’ => ‘error’,
‘message’ => ‘user_creation_failed’,
);
} else {
$result = array(
‘status’ => ‘success’,
‘message’ => ‘user_created’,
);Forum: Plugins
In reply to: [Temporary Login Without Password] Tempr]orary login without passwordno luck… what do i wrong?
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailMessage:
“User Creation Failed”
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailThanking you…
but wont work..
Still the same message..
I tried your way…
Forum: Plugins
In reply to: [Temporary Login Without Password] Multiple Accounts with same EMailno answer? ;-(
Forum: Plugins
In reply to: [Temporary Login Without Password] Tempr]orary login without passwordHi Emanaku,
thank you very much for your help… exactly what i needed.. but… I get an error message:
“User creation failed”
Cheers
- This reply was modified 6 years ago by thobau.
Forum: Plugins
In reply to: [Temporary Login Without Password] Tempr]orary login without passwordHi, thank you for your hard work on this plugin. Can i remove it, that i do not have to enter an email adress for every temp login? i need to create hundreds of temp logins, but dont want to enter hundreds of different email adresses.
thanking you
Tom