Jump to content

What happened to AJAX functionality in PS 1.7


Recommended Posts

Question for the Core Devs:

I'm upgrading from 1.6 to 1.7.

Previously I was able to send an Ajax request to the AuthController.

In 1.6 the AuthController had this useful bit of code in it:

       if ($this->ajax) {
            $return = array(
                'hasError' => !empty($this->errors),
                'errors' => $this->errors,
                'token' => Tools::getToken(false)

This allowed me to make an Ajax request to the Auth Controller, and I'd receive back a Json Object with any errors that might have occurred during login. I could then handle the errors in whichever way I wanted. This worked just fine. Convenient, simple, and effective.


However, now there is no trace of this code in the 1.7 Auth Controller. 


What's the new process for Ajax calls to front controllers, specifically the Auth Controller?

Edited by theillo (see edit history)

Share this post

Link to post
Share on other sites

Here's the commit during which the removal happened:



538 deletions for AuthController.php and the Ajax functionality was removed. 

Why? Was it put somewhere else?

The title of the commit is "Add account creation in AuthController". Why did we have 538 deletions to "add" something?

Share this post

Link to post
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More