Browse Source

namePresent

release_0.0.1
yuan_yi 3 years ago
parent
commit
6f23175395
  1. 18
      code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js

18
code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js

@ -28,15 +28,15 @@ export function login (username, password) {
return Promise.resolve(); return Promise.resolve();
} }
// return dispatch({ return dispatch({
// type: LOGIN_SUCCESS, type: LOGIN_SUCCESS,
// payload: { payload: {
// user: { user: {
// authorized: true, authorized: true,
// displayName: 'TEST' namePresent: 'TEST'
// } }
// }, },
// }); });
return AuthRequest.post(ApiTable.login, { username, password }) return AuthRequest.post(ApiTable.login, { username, password })
.then(user => { .then(user => {

Loading…
Cancel
Save