• Randall Leeds's avatar
    Fix regressions in auth errors and state resume · baf9906d
    Randall Leeds authored
    Fix two recent regressions with authentication. The first is the lack
    of form error reporting. The second is the issue that ongoing highlight
    mode switches and edits don't proceed after login.
    
    - Unify all the interceptors related to sessioning. The interceptor for
      flash messages, csrf, and extracting the model from the session view
      responses is now all in session.coffee. This is better because it
      means other requests that don't return data in the same format aren't
      processed by these interceptors. It also makes it clearer which data
      the interceptors are processing; the CSRF interceptor may have been
      broken because the flash interceptor was discarding the data outside
      the model object.
    - The CSRF interceptor was also not returning a rejected promise on
      errors. This mistake caused the errors not to be propagated to the
      Auth form controller. Fix #1266.
    - The interaction between the Auth controller, session model changes,
      and scope resets is improved. The timeouts on the auth sheet are
      fixed so that they don't lose the ongoing mode switches and edits
      when the sheet is closed. Fix #1214.
    baf9906d
Name
Last commit
Last update
..
plugin Loading commit data...
.gitignore Loading commit data...
app.coffee Loading commit data...
app_directives.coffee Loading commit data...
controllers.coffee Loading commit data...
directives.coffee Loading commit data...
displayer.coffee Loading commit data...
filters.coffee Loading commit data...
flash.coffee Loading commit data...
guest.coffee Loading commit data...
helpers.coffee Loading commit data...
host.coffee Loading commit data...
services.coffee Loading commit data...
session.coffee Loading commit data...
socket.coffee Loading commit data...
streamfilter.coffee Loading commit data...
streamsearch.coffee Loading commit data...