Commit 249009a
committed
General: Record a deactivation once and clear the keys beside it
One deactivation through the admin edit form wrote two DEACTIVATE_USER entries.
The develop merge is where that came from: develop moved the audit call to after
the credential revocation, this branch still had it before, and the merge kept
both. It is the same defect that was fixed once already for the activation
direction.
The audit call now happens in one place, after the revocation, with the
recovery-key clearing beside it.
Both deactivation tests asserted with anySatisfy, which two entries satisfy just
as well as one, so neither could see this. They count now.1 parent ec89850 commit 249009a
2 files changed
Lines changed: 18 additions & 11 deletions
File tree
- src
- main/java/de/tum/cit/aet/artemis/account/service/user
- test/java/de/tum/cit/aet/artemis/account/service
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 305 | | |
316 | 306 | | |
317 | 307 | | |
| |||
324 | 314 | | |
325 | 315 | | |
326 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
327 | 321 | | |
328 | 322 | | |
329 | 323 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
| 476 | + | |
474 | 477 | | |
475 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
476 | 484 | | |
477 | 485 | | |
478 | | - | |
| 486 | + | |
479 | 487 | | |
480 | 488 | | |
481 | 489 | | |
| |||
485 | 493 | | |
486 | 494 | | |
487 | 495 | | |
| 496 | + | |
488 | 497 | | |
489 | 498 | | |
490 | 499 | | |
| |||
520 | 529 | | |
521 | 530 | | |
522 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
523 | 536 | | |
524 | 537 | | |
525 | 538 | | |
| |||
0 commit comments