diff --git a/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js b/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js index 916f966..050ced8 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js +++ b/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js @@ -28,15 +28,15 @@ export function login (username, password) { return Promise.resolve(); } - // return dispatch({ - // type: LOGIN_SUCCESS, - // payload: { - // user: { - // authorized: true, - // displayName: 'TEST' - // } - // }, - // }); + return dispatch({ + type: LOGIN_SUCCESS, + payload: { + user: { + authorized: true, + namePresent: 'TEST' + } + }, + }); return AuthRequest.post(ApiTable.login, { username, password }) .then(user => {