Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB Auto Action

  • adwin34
  • adwin34
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #234337 by adwin34
[SOLVED] CB Auto Action was created by adwin34
hello

i have old auto action (2.x) and just subscribe new professional account for this plugin
when i see the new action (login/logout)

my question :
how i can auto-login user after registration ?
i use type Login/logout
triggers "onAfterUserRegistration"

and ? not working ...
Last edit: 11 years 1 month ago by adwin34.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234340 by krileon
Replied by krileon on topic CB Auto Action
The below will auto login, but you need to ensure you do not require email confirmation or admin approval.

Type: Login/Logout
Triggers: onAfterUserRegistration
Access: Everybody
Username: [username]

Leave everything else as defaults and it should login perfectly fine.


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.

  • adwin34
  • adwin34
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #234346 by adwin34
Replied by adwin34 on topic CB Auto Action
hum

user is save, he's activate, confirmed, approved

But the login don't work, i have message
"Identifiant ou mot de passe incorrect. Essayez de nouveau."

"ident or password not correct, try again"

i have desactivate all other auto action for test.
Last edit: 11 years 1 month ago by adwin34.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago - 11 years 1 month ago #234355 by krileon
Replied by krileon on topic CB Auto Action
Please ensue your action is configured exactly as follows. I've confirmed the below working.

Published: Yes
Type: Login/Logout
Triggers: onAfterUserRegistration
User: Automatic
Access: Everybody
Mode: Login
Method: Username
Username: [username]

It needs the username field to substitute it in. If there's some sort of access restrictions on it then try [var1_username] instead to directly access the registration user object.


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.
Last edit: 11 years 1 month ago by krileon.
The following user(s) said Thank You: adwin34

Please Log in or Create an account to join the conversation.

  • adwin34
  • adwin34
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
11 years 1 month ago #234388 by adwin34
Replied by adwin34 on topic CB Auto Action
i use onAfterUserRegistrationMailsSent and desactivate all ajax control and now it's ok !!
Thanks

just another question :
i use redirect "onAfterUserUpdate" and it's ok when user is log and save his profil
but the redirect works too when user is not log and use recover password
(cause his password change !!)

how to conditional this ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234405 by krileon
Replied by krileon on topic CB Auto Action
Condition to make sure [post_email] is not empty. This should prevent it from firing on forgot login. Aside from that you can't right now. Next CB release will have a trigger specific to after a successful profile update.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum