perf: account update (#9656)

Co-authored-by: feng <1304903146@qq.com>
pull/9657/head
fit2bot 2023-02-20 20:22:26 +08:00 committed by GitHub
parent 1888597451
commit ca22b08cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class AuthValidateMixin(serializers.Serializer):
return secret
def clean_auth_fields(self, validated_data):
secret_type = validated_data['secret_type']
secret_type = validated_data.pop('secret_type', None)
passphrase = validated_data.get('passphrase')
secret = validated_data.pop('secret', None)
self.handle_secret(secret, secret_type, passphrase)