|
|
@ -83,8 +83,9 @@ class UserSerializer(RolesSerializerMixin, CommonBulkSerializerMixin, serializer |
|
|
|
) |
|
|
|
) |
|
|
|
login_blocked = serializers.BooleanField(read_only=True, label=_("Login blocked")) |
|
|
|
login_blocked = serializers.BooleanField(read_only=True, label=_("Login blocked")) |
|
|
|
is_expired = serializers.BooleanField(read_only=True, label=_("Is expired")) |
|
|
|
is_expired = serializers.BooleanField(read_only=True, label=_("Is expired")) |
|
|
|
can_public_key_auth = serializers.ReadOnlyField( |
|
|
|
can_public_key_auth = serializers.BooleanField( |
|
|
|
source="can_use_ssh_key_login", label=_("Can public key authentication") |
|
|
|
source="can_use_ssh_key_login", label=_("Can public key authentication"), |
|
|
|
|
|
|
|
read_only=True |
|
|
|
) |
|
|
|
) |
|
|
|
password = EncryptedField( |
|
|
|
password = EncryptedField( |
|
|
|
label=_("Password"), |
|
|
|
label=_("Password"), |
|
|
|