aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/LoginButton.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js
index fbce6982b..e59dabdf2 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);