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 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 => {

Loading…
Cancel
Save