client/src/actions/authActions.js
author ymh <ymh.work@gmail.com>
Fri, 23 Jun 2017 18:50:57 +0200
changeset 86 fa8ef84a1780
parent 52 96f8a4a59bd9
child 89 06f609adfbf8
permissions -rw-r--r--
Add margin comments in server save

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
  };
}