             newState = {@state..., registered: null}
             @setState(newState)
         else
-            data = await callApi "login", {
-                username: @state.username,
-                password: @state.password
-            }
             @props.history.push("/")
 
     render: () ->

                    <Modal.Body>
                        {@state.registered.loading && <CometSpinLoader />}
                        {@state.registered.error && "Ошибка: " + @state.registered.message}
                        {@state.registered.success && "Регистрация успешна!"}
                    </Modal.Body>

                    <Modal.Footer>

import HelpBlock from 'react-bootstrap/lib/HelpBlock'
import Button from 'react-bootstrap/lib/Button'
import Modal from 'react-bootstrap/lib/Modal'

import { Link } from 'react-router-dom'

import callApi from '../lib/callApi'

