import React from 'react';
import * as BS from 'react-bootstrap';
import { bindActionCreators } from 'redux';
import Actions from 'vanth/actions/root';
module.exports = React.createClass({
getInitialState() {
return {
password : null,
username : null,
}
},
handleChange: function(parameter) {
return (e) => {
this.setState({
[parameter] : e.target.value
});
}
},
handleSubmit: function(e) {
e.preventDefault();
Actions.Session.createSession(
this.state.username,
this.state.password,
this.props.url.search.nextPath || "/"
).then(result => {
Actions.Session.get();
Actions.URL.navigate('/');
}).catch(error => {
console.error(error);
});
},
render: function() {
const forgotPassword = Forgot Password;
const pending = false;
return (
Login
);
}
});