1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-19 07:21:29 +00:00
Files
homebrewery/shared/homebrewery/account.actions.js
2017-01-22 12:49:35 -05:00

18 lines
469 B
JavaScript

const Store = require('./account.store.js');
const Actions = {
init : (initState) => {
Store.init(initState);
},
login : ()=>{
window.location = Store.getLoginPath();
},
logout : ()=>{
document.cookie = 'nc_session=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=.naturalcrit.com';
//Remove local dev cookies too
document.cookie = 'nc_session=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;';
window.location ='/';
}
};
module.exports = Actions;