client/src/actions/authActions.js
author ymh <ymh.work@gmail.com>
Tue, 20 Jun 2017 19:04:42 +0200
changeset 65 14989b339e5d
parent 52 96f8a4a59bd9
child 89 06f609adfbf8
permissions -rw-r--r--
Use a fonctionnal component for the login part of the navbar

import * as types from '../constants/actionTypes';

export const loginSubmit = (username, password) => {
  return {
    type: types.AUTH_LOGIN_SUBMIT,
    username,
    password
  };
}

export const logout = () => {
  return {
    type: types.AUTH_LOGOUT
  };
}