Skip to content

Commit

Permalink
last_login is null when user never logged in from the webUI (#10360)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbu authored Jun 10, 2024
1 parent d1b6664 commit d43b39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class Meta:

class UserSerializer(serializers.ModelSerializer):
date_joined = serializers.DateTimeField(read_only=True)
last_login = serializers.DateTimeField(read_only=True)
last_login = serializers.DateTimeField(read_only=True, allow_null=True)
password = serializers.CharField(
write_only=True,
style={"input_type": "password"},
Expand Down

0 comments on commit d43b39c

Please sign in to comment.