Verify email with CB auto Action on registration
- dkal
- OFFLINE
- Posts: 1
- Thanks: 0
- Karma: 0
12 years 3 months ago #191087
by dkal
Verify email with CB auto Action on registration was created by dkal
I want to verify email on registration.
I have 2 fields : email and cb_confirmed email
I want to use CB Auto actions to stop registration if the 2 fields are not equal.
I can't find a solution : php ? js ?
Thanks
I have 2 fields : email and cb_confirmed email
I want to use CB Auto actions to stop registration if the 2 fields are not equal.
I can't find a solution : php ? js ?
Thanks
Please Log in or Create an account to join the conversation.
- krileon
- ONLINE
- Posts: 68607
- Thanks: 9108
- Karma: 1434
12 years 3 months ago #191109
by krileon
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Replied by krileon on topic Re: Verify email with CB auto Action on registration
The below should do the trick. You'll need the latest release (2.4.0) for this to work however.
Type: Redirect
Trigger: onStartSaveUserRegistration
User: Automatic
Access: Everybody
Condition: [post_email] Not Equal To [post_cb_confirmedemail]
URL: goback
Believe this should give you what you're wanting, but you may need to adjust the URL or trigger to give a better experience such as maybe needing the on before registration trigger for example.
Type: Redirect
Trigger: onStartSaveUserRegistration
User: Automatic
Access: Everybody
Condition: [post_email] Not Equal To [post_cb_confirmedemail]
URL: goback
Believe this should give you what you're wanting, but you may need to adjust the URL or trigger to give a better experience such as maybe needing the on before registration trigger for example.
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Please Log in or Create an account to join the conversation.
- marklandry
- OFFLINE
- Posts: 18
- Thanks: 0
- Karma: 0
12 years 3 months ago - 12 years 3 months ago #191259
by marklandry
Replied by marklandry on topic Re: Verify email with CB auto Action on registration
Hi,
Followed you directions above - it's "almost" working.
The user is redirected back to the registration page, but the registration goes through, also, there's no error message.
If I correct the errant email, I'm then redirected to a blank registration page...
Thanx for any help you can give
Followed you directions above - it's "almost" working.
The user is redirected back to the registration page, but the registration goes through, also, there's no error message.
If I correct the errant email, I'm then redirected to a blank registration page...
Thanx for any help you can give
Last edit: 12 years 3 months ago by marklandry.
Please Log in or Create an account to join the conversation.
- krileon
- ONLINE
- Posts: 68607
- Thanks: 9108
- Karma: 1434
12 years 3 months ago #191272
by krileon
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Replied by krileon on topic Re: Verify email with CB auto Action on registration
Ah, right forgot that registration goes through regardless of user abort. I think you'll also need a duplicate of the redirect action except it being a Code action with the PHP code "exit()" or "die()" so it stops PHP from continuing with the registration. Example as follows.
Type: Code
Trigger: onStartSaveUserRegistration
User: Automatic
Access: Everybody
Condition: [post_email] Not Equal To [post_cb_confirmedemail]
Method: PHP (create_function)
Code: die();
Return: Silent
Ensure the code action is ordered after the redirect action.
Type: Code
Trigger: onStartSaveUserRegistration
User: Automatic
Access: Everybody
Condition: [post_email] Not Equal To [post_cb_confirmedemail]
Method: PHP (create_function)
Code: die();
Return: Silent
Ensure the code action is ordered after the redirect action.
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Please Log in or Create an account to join the conversation.
- marklandry
- OFFLINE
- Posts: 18
- Thanks: 0
- Karma: 0
12 years 3 months ago - 12 years 3 months ago #191278
by marklandry
Replied by marklandry on topic Re: Verify email with CB auto Action on registration
Ok, just duplicated and changed the settings per your suggestion.
I go to a blank page that has an aec url but it stays white...
I go to a blank page that has an aec url but it stays white...
Last edit: 12 years 3 months ago by marklandry.
Please Log in or Create an account to join the conversation.
- marklandry
- OFFLINE
- Posts: 18
- Thanks: 0
- Karma: 0
12 years 3 months ago #191282
by marklandry
Replied by marklandry on topic Re: Verify email with CB auto Action on registration
well, I get a mix between a white page and the aec payment page...
Not working either way though...
Not working either way though...
Please Log in or Create an account to join the conversation.
Moderators: beat, nant, krileon