• Nick Stenning's avatar
    Only login if not already authenticated · 446c0997
    Nick Stenning authored
    Calling login here calls identity.request to be called, which in turn
    eventually results in the onlogin callback running.
    
    The onlogin callback is not currently idempotent (and it isn't trivial
    to make it so) so this results in errors being thrown by Annotator.
    
    Fixes #1611.
    446c0997
controllers.coffee 11 KB