Yes, again use the auto action URL for whatever you want. You can completely customize its output as well. So it can give a JSON response to act on in your ajax call.I was wondering whether it would be possible to request the url by ajax ?
Nothing to update in that regard you can already link to the buttons directly. URL structure as follows.Also as you are updating CB Connect, could we imagine linking to it so that the users could log in with their social networks data ?
We're going to get rid of our login/logout endpoints entirely. We plan to just let Joomla handle login/logout in CB 3.x. Registration will be doable via an API endpoint in CB 3.x as we plan to have official API endpoints. I have absolutely no timeframe for any of this though so for now you need to do this using CB Auto Actions.Of course the best thing would be to have an ajax login/logout and an ajax registration form that I could use in the web component
There won't be a user object available until they login. Currently you're not going to be able to use the Login / Logout auto action for your ajax endpoint as it has a redirect and doesn't set the logged in user into substitution data so you won't have a way to output anything from that logged in user yet. I'll be improving that sometime today so the redirect is optional and will set the logged in user into substitution data.BTW using the above autoaction, how do I get the user from the url with [post_username] and [post_password] ? Is it enough to input these in the action tab and leave the user on automatic ? or should I code the user with these and how ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Our registration is not designed for that. You're honestly better off just using an iframe and letting it happen on the site directly within your application. You can use iframe window messenger API to let the application know the registration is complete so you can handle dealing with the form submit process.3) As for registration, I need to do basically the same thing and get back a json token to authentify my new user in the outside local storage.
With an autoaction this seems fine (maybe check that there is no redirect also ?) but I'd like to know how I could integrate all the checks that exists in CB Registration (ajax for username, password strengths, CB subs etc etc )
The registration auto action just directly creates the user within CB. It's not like a normal registration endpoint with validation. It will either succeed or it will fail. It won't interact with plugins like CBSubs in any way.So is there a solution for simply changing the post url of the registration to this new autoaction ? or something similar ? or can I call CB plugins directly in my registration form ? knowing that it's not very simple to use DOM manipulation within a web component ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.