diff options
author | 2018-06-27 16:32:53 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 660cc823d4f2446dbc3113b2de4d3164664303fb (patch) | |
tree | ad6b807841a926313806892e2410f7932d717837 /vnext/src/components/LoginButton.js | |
parent | 930736e7b3ff29de16aaec9229242bd83c09f3b7 (diff) |
fix social login
Diffstat (limited to 'vnext/src/components/LoginButton.js')
-rw-r--r-- | vnext/src/components/LoginButton.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |