Commit e27af4e3 authored by roadscape's avatar roadscape
Browse files

use basic loginType from login.html, fix #25

parent 103c6325
......@@ -442,8 +442,8 @@ function checkPasswordChecksum(password) {
import { connect } from 'react-redux';
export default connect(
// mapStateToProps
state => {
const loginType = state.user.get('login_type');
(state, ownProps) => {
const loginType = ownProps.loginType || state.user.get('login_type');
const loginError = state.user.get('login_error');
const currentUser = state.user.get('current');
const loginBroadcastOperation = state.user.get(
......
......@@ -37,7 +37,7 @@ class Login extends React.Component {
return (
<div className="Login row">
<div className="column">
<LoginForm />
<LoginForm loginType="basic" />
</div>
</div>
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment