Skip to content

Commit 5f03c84

Browse files
authored
Delete duplicate comment, improve docstring
1 parent ceb48c2 commit 5f03c84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

djangosaml2/backends.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def get_or_create_user(
263263
attribute_mapping: dict,
264264
request,
265265
) -> 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).
267267
The default implementation looks only at the user_identifier. Override this method in order to do more complex behaviour,
268268
e.g. customize this per IdP.
269269
"""
@@ -277,7 +277,6 @@ def get_or_create_user(
277277
): user_lookup_value
278278
}
279279

280-
# Lookup existing user
281280
# Lookup existing user
282281
user, created = None, False
283282
try:

0 commit comments

Comments
 (0)