Commit 9b55b02
committed
Add default superadmin user creation on first run
- Create default superadmin when database is empty on first startup
- Email: first configured superadmin email or admin@localhost
- Password: Password123! (with MustChangePassword flag)
- Add MustChangePassword field to User entity and DTOs
- Add PasswordChangeAlert banner in Blazor app when user needs to change password
- Clear MustChangePassword flag after successful password change
- Update deploy README with first run documentation1 parent 4ece85b commit 9b55b02
12 files changed
Lines changed: 2624 additions & 2 deletions
File tree
- cloud
- deploy
- src
- LrmCloud.Api
- Data/Migrations
- Services
- LrmCloud.Web
- Components
- Layout
- Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
246 | 272 | | |
247 | 273 | | |
248 | 274 | | |
| |||
0 commit comments