client/src/actions/authActions.js
author Alexandre Segura <mex.zktk@gmail.com>
Thu, 22 Jun 2017 10:47:10 +0200
changeset 72 7634b424f426
parent 52 96f8a4a59bd9
child 89 06f609adfbf8
permissions -rw-r--r--
Add checkbox to add not on enter key.

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