                     onCancel: onCancel, onOk: onOk, show: true,
                     buttons: [{ title: 'Ok', style: 'primary'}]
                     body: Lanes.u.withReactContext({viewport: viewport}, ->
-                        <Lanes.Access.LoginDialog model={session} />
+                        <Lanes.Access.LoginDialog model={session} attemptLogin={onOk} />
                     )
                 )
             )

                session.save(ignoreErrors: true).then ->
                    if session.user
                        Lanes.current_user.setLoginData(session.user, session.access)
                    else
                        dlg.setState(show:true)

    mixins: [
        Lanes.React.Mixins.RelayEditingState

                    <LC.Input
                        writable
                        model={@model}
                        onEnter={@props.attemptLogin}
                        name="password"
                        type='password'
                        label='Password'
