Yoshie Muranaka | 224d6ad | 2020-05-21 09:10:52 -0700 | [diff] [blame] | 1 | import api, { getResponseCount } from '@/store/api'; |
| 2 | import i18n from '@/i18n'; |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 3 | |
| 4 | const LocalUserManagementStore = { |
| 5 | namespaced: true, |
| 6 | state: { |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 7 | allUsers: [], |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 8 | accountRoles: [], |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 9 | accountLockoutDuration: null, |
| 10 | accountLockoutThreshold: null, |
| 11 | accountMinPasswordLength: null, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 12 | accountMaxPasswordLength: null, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 13 | }, |
| 14 | getters: { |
| 15 | allUsers(state) { |
| 16 | return state.allUsers; |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 17 | }, |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 18 | accountRoles(state) { |
| 19 | return state.accountRoles; |
| 20 | }, |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 21 | accountSettings(state) { |
| 22 | return { |
| 23 | lockoutDuration: state.accountLockoutDuration, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 24 | lockoutThreshold: state.accountLockoutThreshold, |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 25 | }; |
| 26 | }, |
| 27 | accountPasswordRequirements(state) { |
| 28 | return { |
| 29 | minLength: state.accountMinPasswordLength, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 30 | maxLength: state.accountMaxPasswordLength, |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 31 | }; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 32 | }, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 33 | }, |
| 34 | mutations: { |
| 35 | setUsers(state, allUsers) { |
| 36 | state.allUsers = allUsers; |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 37 | }, |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 38 | setAccountRoles(state, accountRoles) { |
| 39 | state.accountRoles = accountRoles; |
| 40 | }, |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 41 | setLockoutDuration(state, lockoutDuration) { |
| 42 | state.accountLockoutDuration = lockoutDuration; |
| 43 | }, |
| 44 | setLockoutThreshold(state, lockoutThreshold) { |
| 45 | state.accountLockoutThreshold = lockoutThreshold; |
| 46 | }, |
| 47 | setAccountMinPasswordLength(state, minPasswordLength) { |
| 48 | state.accountMinPasswordLength = minPasswordLength; |
| 49 | }, |
| 50 | setAccountMaxPasswordLength(state, maxPasswordLength) { |
| 51 | state.accountMaxPasswordLength = maxPasswordLength; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 52 | }, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 53 | }, |
| 54 | actions: { |
Yoshie Muranaka | 346be2a | 2020-04-28 11:12:14 -0700 | [diff] [blame] | 55 | async getUsers({ commit }) { |
| 56 | return await api |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 57 | .get('/redfish/v1/AccountService/Accounts') |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 58 | .then((response) => |
| 59 | response.data.Members.map((user) => user['@odata.id']) |
| 60 | ) |
| 61 | .then((userIds) => api.all(userIds.map((user) => api.get(user)))) |
| 62 | .then((users) => { |
| 63 | const userData = users.map((user) => user.data); |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 64 | commit('setUsers', userData); |
Yoshie Muranaka | 74c24f1 | 2019-12-03 10:45:46 -0800 | [diff] [blame] | 65 | }) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 66 | .catch((error) => { |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 67 | console.log(error); |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 68 | const message = i18n.t( |
| 69 | 'pageLocalUserManagement.toast.errorLoadUsers' |
| 70 | ); |
| 71 | throw new Error(message); |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 72 | }); |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 73 | }, |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 74 | getAccountSettings({ commit }) { |
| 75 | api |
| 76 | .get('/redfish/v1/AccountService') |
| 77 | .then(({ data }) => { |
| 78 | commit('setLockoutDuration', data.AccountLockoutDuration); |
| 79 | commit('setLockoutThreshold', data.AccountLockoutThreshold); |
| 80 | commit('setAccountMinPasswordLength', data.MinPasswordLength); |
| 81 | commit('setAccountMaxPasswordLength', data.MaxPasswordLength); |
| 82 | }) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 83 | .catch((error) => { |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 84 | console.log(error); |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 85 | const message = i18n.t( |
| 86 | 'pageLocalUserManagement.toast.errorLoadAccountSettings' |
| 87 | ); |
| 88 | throw new Error(message); |
Yoshie Muranaka | 52b0223 | 2020-02-20 08:00:45 -0800 | [diff] [blame] | 89 | }); |
| 90 | }, |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 91 | getAccountRoles({ commit }) { |
| 92 | api |
| 93 | .get('/redfish/v1/AccountService/Roles') |
| 94 | .then(({ data: { Members = [] } = {} }) => { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 95 | const roles = Members.map((role) => { |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 96 | return role['@odata.id'].split('/').pop(); |
| 97 | }); |
| 98 | commit('setAccountRoles', roles); |
| 99 | }) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 100 | .catch((error) => console.log(error)); |
Yoshie Muranaka | 038a9da | 2020-04-17 11:22:56 -0700 | [diff] [blame] | 101 | }, |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 102 | async createUser({ dispatch }, { username, password, privilege, status }) { |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 103 | const data = { |
| 104 | UserName: username, |
| 105 | Password: password, |
| 106 | RoleId: privilege, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 107 | Enabled: status, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 108 | }; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 109 | return await api |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 110 | .post('/redfish/v1/AccountService/Accounts', data) |
| 111 | .then(() => dispatch('getUsers')) |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 112 | .then(() => |
| 113 | i18n.t('pageLocalUserManagement.toast.successCreateUser', { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 114 | username, |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 115 | }) |
| 116 | ) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 117 | .catch((error) => { |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 118 | console.log(error); |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 119 | const message = i18n.t( |
| 120 | 'pageLocalUserManagement.toast.errorCreateUser', |
| 121 | { username } |
| 122 | ); |
| 123 | throw new Error(message); |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 124 | }); |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 125 | }, |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 126 | async updateUser( |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 127 | { dispatch }, |
Yoshie Muranaka | 1f9ed4c | 2020-03-26 16:59:54 -0700 | [diff] [blame] | 128 | { originalUsername, username, password, privilege, status, locked } |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 129 | ) { |
| 130 | const data = {}; |
| 131 | if (username) data.UserName = username; |
| 132 | if (password) data.Password = password; |
| 133 | if (privilege) data.RoleId = privilege; |
| 134 | if (status !== undefined) data.Enabled = status; |
Yoshie Muranaka | 1f9ed4c | 2020-03-26 16:59:54 -0700 | [diff] [blame] | 135 | if (locked !== undefined) data.Locked = locked; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 136 | return await api |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 137 | .patch(`/redfish/v1/AccountService/Accounts/${originalUsername}`, data) |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 138 | .then(() => dispatch('getUsers')) |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 139 | .then(() => |
| 140 | i18n.t('pageLocalUserManagement.toast.successUpdateUser', { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 141 | username: originalUsername, |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 142 | }) |
| 143 | ) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 144 | .catch((error) => { |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 145 | console.log(error); |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 146 | const message = i18n.t( |
| 147 | 'pageLocalUserManagement.toast.errorUpdateUser', |
| 148 | { username: originalUsername } |
| 149 | ); |
| 150 | throw new Error(message); |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 151 | }); |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 152 | }, |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 153 | async deleteUser({ dispatch }, username) { |
| 154 | return await api |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 155 | .delete(`/redfish/v1/AccountService/Accounts/${username}`) |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 156 | .then(() => dispatch('getUsers')) |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 157 | .then(() => |
| 158 | i18n.t('pageLocalUserManagement.toast.successDeleteUser', { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 159 | username, |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 160 | }) |
| 161 | ) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 162 | .catch((error) => { |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 163 | console.log(error); |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 164 | const message = i18n.t( |
| 165 | 'pageLocalUserManagement.toast.errorDeleteUser', |
| 166 | { username } |
| 167 | ); |
| 168 | throw new Error(message); |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 169 | }); |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 170 | }, |
| 171 | async deleteUsers({ dispatch }, users) { |
| 172 | const promises = users.map(({ username }) => { |
| 173 | return api |
| 174 | .delete(`/redfish/v1/AccountService/Accounts/${username}`) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 175 | .catch((error) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 176 | console.log(error); |
| 177 | return error; |
| 178 | }); |
| 179 | }); |
| 180 | return await api |
| 181 | .all(promises) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 182 | .then((response) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 183 | dispatch('getUsers'); |
| 184 | return response; |
| 185 | }) |
| 186 | .then( |
| 187 | api.spread((...responses) => { |
| 188 | const { successCount, errorCount } = getResponseCount(responses); |
| 189 | let toastMessages = []; |
| 190 | |
| 191 | if (successCount) { |
| 192 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 193 | 'pageLocalUserManagement.toast.successBatchDelete', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 194 | successCount |
| 195 | ); |
| 196 | toastMessages.push({ type: 'success', message }); |
| 197 | } |
| 198 | |
| 199 | if (errorCount) { |
| 200 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 201 | 'pageLocalUserManagement.toast.errorBatchDelete', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 202 | errorCount |
| 203 | ); |
| 204 | toastMessages.push({ type: 'error', message }); |
| 205 | } |
| 206 | |
| 207 | return toastMessages; |
| 208 | }) |
| 209 | ); |
| 210 | }, |
| 211 | async enableUsers({ dispatch }, users) { |
| 212 | const data = { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 213 | Enabled: true, |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 214 | }; |
| 215 | const promises = users.map(({ username }) => { |
| 216 | return api |
| 217 | .patch(`/redfish/v1/AccountService/Accounts/${username}`, data) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 218 | .catch((error) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 219 | console.log(error); |
| 220 | return error; |
| 221 | }); |
| 222 | }); |
| 223 | return await api |
| 224 | .all(promises) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 225 | .then((response) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 226 | dispatch('getUsers'); |
| 227 | return response; |
| 228 | }) |
| 229 | .then( |
| 230 | api.spread((...responses) => { |
| 231 | const { successCount, errorCount } = getResponseCount(responses); |
| 232 | let toastMessages = []; |
| 233 | |
| 234 | if (successCount) { |
| 235 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 236 | 'pageLocalUserManagement.toast.successBatchEnable', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 237 | successCount |
| 238 | ); |
| 239 | toastMessages.push({ type: 'success', message }); |
| 240 | } |
| 241 | |
| 242 | if (errorCount) { |
| 243 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 244 | 'pageLocalUserManagement.toast.errorBatchEnable', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 245 | errorCount |
| 246 | ); |
| 247 | toastMessages.push({ type: 'error', message }); |
| 248 | } |
| 249 | |
| 250 | return toastMessages; |
| 251 | }) |
| 252 | ); |
| 253 | }, |
| 254 | async disableUsers({ dispatch }, users) { |
| 255 | const data = { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 256 | Enabled: false, |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 257 | }; |
| 258 | const promises = users.map(({ username }) => { |
| 259 | return api |
| 260 | .patch(`/redfish/v1/AccountService/Accounts/${username}`, data) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 261 | .catch((error) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 262 | console.log(error); |
| 263 | return error; |
| 264 | }); |
| 265 | }); |
| 266 | return await api |
| 267 | .all(promises) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 268 | .then((response) => { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 269 | dispatch('getUsers'); |
| 270 | return response; |
| 271 | }) |
| 272 | .then( |
| 273 | api.spread((...responses) => { |
| 274 | const { successCount, errorCount } = getResponseCount(responses); |
| 275 | let toastMessages = []; |
| 276 | |
| 277 | if (successCount) { |
| 278 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 279 | 'pageLocalUserManagement.toast.successBatchDisable', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 280 | successCount |
| 281 | ); |
| 282 | toastMessages.push({ type: 'success', message }); |
| 283 | } |
| 284 | |
| 285 | if (errorCount) { |
| 286 | const message = i18n.tc( |
Yoshie Muranaka | 8fc53ad | 2020-05-04 10:40:41 -0700 | [diff] [blame] | 287 | 'pageLocalUserManagement.toast.errorBatchDisable', |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 288 | errorCount |
| 289 | ); |
| 290 | toastMessages.push({ type: 'error', message }); |
| 291 | } |
| 292 | |
| 293 | return toastMessages; |
| 294 | }) |
| 295 | ); |
Yoshie Muranaka | 1b1c100 | 2020-02-20 10:18:36 -0800 | [diff] [blame] | 296 | }, |
| 297 | async saveAccountSettings( |
| 298 | { dispatch }, |
| 299 | { lockoutThreshold, lockoutDuration } |
| 300 | ) { |
| 301 | const data = {}; |
| 302 | if (lockoutThreshold !== undefined) { |
| 303 | data.AccountLockoutThreshold = lockoutThreshold; |
| 304 | } |
| 305 | if (lockoutDuration !== undefined) { |
| 306 | data.AccountLockoutDuration = lockoutDuration; |
| 307 | } |
| 308 | |
| 309 | return await api |
| 310 | .patch('/redfish/v1/AccountService', data) |
| 311 | //GET new settings to update view |
| 312 | .then(() => dispatch('getAccountSettings')) |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 313 | .then(() => i18n.t('pageLocalUserManagement.toast.successSaveSettings')) |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 314 | .catch((error) => { |
Yoshie Muranaka | 1b1c100 | 2020-02-20 10:18:36 -0800 | [diff] [blame] | 315 | console.log(error); |
| 316 | const message = i18n.t( |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 317 | 'pageLocalUserManagement.toast.errorSaveSettings' |
Yoshie Muranaka | 1b1c100 | 2020-02-20 10:18:36 -0800 | [diff] [blame] | 318 | ); |
| 319 | throw new Error(message); |
| 320 | }); |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 321 | }, |
| 322 | }, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 323 | }; |
| 324 | |
| 325 | export default LocalUserManagementStore; |