diff --git a/src/components/login/login.jsx b/src/components/login/login.jsx index 9df04b554..65860fc65 100644 --- a/src/components/login/login.jsx +++ b/src/components/login/login.jsx @@ -1,4 +1,5 @@ var React = require('react'); +var ReactDOM = require('react-dom'); var FormattedMessage = require('react-intl').FormattedMessage; var Input = require('../forms/input.jsx'); @@ -15,8 +16,8 @@ var Login = React.createClass({ handleSubmit: function (event) { event.preventDefault(); this.props.onLogIn({ - 'username': this.refs.username.value, - 'password': this.refs.password.value + 'username': ReactDOM.findDOMNode(this.refs.username).value, + 'password': ReactDOM.findDOMNode(this.refs.password).value }); }, render: function () {