1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-22 14:50:29 +03:00

updated actor toke user on re-registration

This commit is contained in:
Adolfo Gómez García 2020-12-17 14:04:19 +01:00
parent dcdea31061
commit e5a38a65ed

View File

@ -160,6 +160,7 @@ class Register(ActorV3Action):
# If already exists a token for this MAC, return it instead of creating a new one, and update the information...
actorToken = ActorToken.objects.get(mac=self._params['mac'])
# Update parameters
actorToken.username = self._user.pretty_name
actorToken.ip_from = self._request.ip
actorToken.ip = self._params['ip']
actorToken.hostname = self._params['hostname']