                     <LC.Input
                         writable
                         model={@model}
-                        onEnter={@props.attemptLogin}
+                        onEnter={=> @props.attemptLogin(@props.modal)}
                         name="password"
                         type='password'
                         label='Password'


                    <LC.Input
                        model={@model}
                        onEnter={@props.attemptLogin}
                        autoFocus writable
                        name="login"
                        label='Username'

                title: 'Please Login'
                onCancel: null, onOk: attemptLogin, show: true,
                buttons: [{ title: 'Login', style: 'primary', eventKey: 'ok'}]
                body: (props) ->
                    <Lanes.Access.LoginDialog
                        {...props}
                        model={session}
                        attemptLogin={attemptLogin} />
            )


