From 660cc823d4f2446dbc3113b2de4d3164664303fb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 27 Jun 2018 16:32:53 +0300 Subject: fix social login --- vnext/src/components/LoginButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src/components') diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js index fbce6982..e59dabdf 100644 --- a/vnext/src/components/LoginButton.js +++ b/vnext/src/components/LoginButton.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import Icon from './Icon'; import Modal from './Modal'; -import { auth } from '../api'; +import { me } from '../api'; export default class LoginButton extends React.Component { constructor(props) { @@ -32,7 +32,7 @@ export default class LoginButton extends React.Component { } login = (event) => { event.preventDefault(); - auth(this.state.username, this.state.password) + me(this.state.username, this.state.password) .then(response => { this.toggleModal(); this.props.onAuth(response); -- cgit v1.2.3