Commit 2440234
committed
fix: create profile for single-login-exempt users; add group exemption test
Exempt users returned early before UserProfile.objects.get_or_create,
so users without a profile never got one created on login while
PREVENT_CONCURRENT_LOGINS was enabled. Move the exemption check to
only skip set_login_session, and add coverage for SINGLE_LOGIN_EXEMPT_GROUPS
and for client1 remaining authenticated after a concurrent login.1 parent 4c5fd00 commit 2440234
2 files changed
Lines changed: 42 additions & 5 deletions
File tree
- common/djangoapps/student/models
- openedx/core/djangoapps/user_authn/views/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | 1374 | | |
1378 | 1375 | | |
1379 | 1376 | | |
| |||
1383 | 1380 | | |
1384 | 1381 | | |
1385 | 1382 | | |
1386 | | - | |
| 1383 | + | |
| 1384 | + | |
1387 | 1385 | | |
1388 | 1386 | | |
1389 | 1387 | | |
| |||
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
685 | 724 | | |
686 | 725 | | |
687 | 726 | | |
| |||
0 commit comments