Skip to Content Skip to Menu

get return error from CB registering api

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
6 years 7 months ago #302981 by saman2
hi...
i use CB api for registering the user but i want get error for when username exist or email was exist.how i can get returned error OR is there any error returned?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 7 months ago - 6 years 7 months ago #302984 by krileon
Replied by krileon on topic get return error from CB registering api
The API to register a user can be found below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18362-registering-a-user-through-cb-api

If ->store() fails you can access the error with ->getError(). The API method shown above will bypass field validation though as it's a direct registration. Only core validations applied by Joomla will be applied.


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: 6 years 7 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum