-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 2ae6db4
feat(auth): implement user creation and update logic in registry
Adds and refactors data operations for the user model.
- Create: A new entry in _itemCreators is added for 'user', enabling user creation through the generic data endpoint.
- Update: The updater for 'user' is refactored to be more secure and flexible. It now accepts a raw Map<String, dynamic> from the request body and selectively applies changes for appRole, dashboardRole, and feedDecoratorStatus.
This approach prevents mass assignment vulnerabilities while allowing both admins and users to perform their permitted updates.1 parent 39501df commit 2ae6db4
1 file changed
+39
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
191 | 196 | | |
192 | 197 | | |
193 | 198 | | |
| |||
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | ||
223 | 234 | | |
224 | 235 | | |
225 | 236 | | |
226 | - | ||
227 | - | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | ||
228 | 264 | | |
229 | - | ||
265 | + | ||
230 | 266 | | |
231 | 267 | | |
232 | 268 | | |
| |||
0 commit comments