This commit is contained in:
@@ -3,7 +3,7 @@ import decode from "jwt-decode";
|
||||
import initialize from "./initialize";
|
||||
|
||||
export function processLogin(response) {
|
||||
var promise = new Promise(function(resolve, reject) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
//is token present?
|
||||
if (!response || !response.data || !response.data.token) {
|
||||
window.$gz.store.commit(
|
||||
@@ -49,7 +49,7 @@ export function processLogin(response) {
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
return promise;
|
||||
// return promise;
|
||||
}
|
||||
|
||||
export function processLogout() {
|
||||
|
||||
Reference in New Issue
Block a user