diff --git a/src/models/register.js b/src/models/register.js index 164ccae111f01ca166fa9d5abf9645eb1087d7cf..54c49633e5fc0a9f9e3908c3e3dbe25e565c210b 100644 --- a/src/models/register.js +++ b/src/models/register.js @@ -1,4 +1,6 @@ import { fakeRegister } from '../services/api'; +import { setAuthority } from '../utils/authority'; +import { reloadAuthorized } from '../utils/Authorized'; export default { namespace: 'register', @@ -19,6 +21,8 @@ export default { reducers: { registerHandle(state, { payload }) { + setAuthority('user'); + reloadAuthorized(); return { ...state, status: payload.status,