Skip to Content Skip to Menu

[SOLVED] CB Connect Facebook - auto username

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
7 years 10 months ago - 7 years 10 months ago #289644 by ricco1
This topic is connected with this one: www.joomlapolis.com/forum/153-professional-member-support/235621-cb-connect-with-facebook-incorect-username-or-password

Like I said:

When a user tries to register or log in with CB Connect and Facebook the first time the button is clicked the site always goes to an error:

Incorrect username or password. Please try again.

but actually at this point the account in Joomla! is created, and then when a second time the button is clicked the log in is OK.


Kyle said:

Most likely means you've something interrupting the registration process. Something acting on the before or after registration triggers configured in CB Auto Actions for example as CB Connect fires normal registration triggers. Could be a 3rd party Joomla User or System plugin. I am unable to confirm your issue and is working perfectly fine in my tests across 2 different installs.


I've found out that indeed we've had an action interrupting the registration process. It was a field action which was set to change the "username" onAfterUserRegistration to "[firstname][user_id]". With the trigger onAfterUserRegistration we've always got the error on the first click of the link to login or register with CB Connect.

We now changed the trigger to onAfterSaveUserRegistration and it works OK with the following problem:

The normal CB register is OK but the user gets an email with his email as the username (probably Username Fallback), but actually in the backend the username is "[firstname][user_id]".

We think we are not using the right trigger here.

Please advice?
Last edit: 7 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
7 years 10 months ago #289668 by krileon
Replied by krileon on topic CB Connect Facebook - auto username
Just keep using the onAfterUserRegistration trigger, but check that the Facebook ID field is empty in your actions conditions. If you've other providers in use also condition against their ID fields to ensure they're empty. onAfterSaveUserRegistration is fired at the very end of the registration process. This means after emails, etc.. have been sent.


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.
The following user(s) said Thank You: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
7 years 10 months ago #289709 by ricco1
Replied by ricco1 on topic CB Connect Facebook - auto username
Actually with your suggested condition the onAfterUserRegistration is better, I think. lol

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

Moderators: beatnantkrileon
Powered by Kunena Forum