LoginForm waits for its socket to onopen.

This commit is contained in:
Luka Vandervelden 2019-12-23 23:48:54 +01:00
parent f4f043f4e1
commit b8c2e54eeb

View File

@ -273,6 +273,7 @@ render-project = (project) ->
model.login-form = LoginForm {
authws-url: model.authd-url
schedule-render: -> projector.schedule-render!
on-login: (user, token) ->
# FIXME: May double-login if the user clicks the “login” button too much.
if model.current-view != "login"