File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def get_or_create_user(
263
263
attribute_mapping : dict ,
264
264
request ,
265
265
) -> tuple [Optional [settings .AUTH_USER_MODEL ], bool ]:
266
- """Look up the user to authenticate. If he doesn't exist, this method creates him (if so desired).
266
+ """Look up the user to authenticate. If they doesn't exist, this method creates them (if so desired).
267
267
The default implementation looks only at the user_identifier. Override this method in order to do more complex behaviour,
268
268
e.g. customize this per IdP.
269
269
"""
@@ -277,7 +277,6 @@ def get_or_create_user(
277
277
): user_lookup_value
278
278
}
279
279
280
- # Lookup existing user
281
280
# Lookup existing user
282
281
user , created = None , False
283
282
try :
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class IdentityCache(Cache):
72
72
logged in.
73
73
74
74
This information is useful because when the user logs out we must
75
- know where does he come from in order to notify such IdP/AA.
75
+ know where does they come from in order to notify such IdP/AA.
76
76
77
77
The current implementation stores this information in the Django session.
78
78
"""
Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ def add_idp_hinting(self, http_response):
189
189
190
190
def should_prevent_auth (self , request ) -> bool :
191
191
# If the user is already authenticated that maybe because of two reasons:
192
- # A) He has this URL in two browser windows and in the other one he
193
- # has already initiated the authenticated session.
194
- # B) He comes from a view that (incorrectly) send him here because
195
- # he does not have enough permissions. That view should have shown
192
+ # A) They have this URL in two browser windows and in the other one they
193
+ # have already initiated the authenticated session.
194
+ # B) They comes from a view that (incorrectly) sends them here because
195
+ # they do not have enough permissions. That view should have shown
196
196
# an authorization error in the first place.
197
197
return request .user .is_authenticated
198
198
You can’t perform that action at this time.
0 commit comments