• Sean Hammond's avatar
    Handle internal server errors in the registration form · d7750027
    Sean Hammond authored
    This fixes #1755: no error is shown on the client side when an attempt
    to register an account receives a 500 Server Error response.
    
    The failure() method in AuthController gets called and tries to do
    {errors, reason} = response.data, but this raises a TypeError because
    response.data is undefined (because the response didn't have a valid
    JSON body), so the client crashes as well.
    
    The fix is to catch this exception on the client side, and show a
    generic error to the user.
    d7750027
Name
Last commit
Last update
..
browser/firefox Loading commit data...
static Loading commit data...
templates/client Loading commit data...