Commit d51f1e12 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Fix réponses multiples, ne crash pas

parent 5faf1346
Pipeline #2266 passed with stage
in 3 minutes and 55 seconds
......@@ -768,7 +768,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
def autoregister_machine(self, mac_address, nas_type):
""" Fonction appellée par freeradius. Enregistre la mac pour
une machine inconnue sur le compte de l'user"""
allowed, _message = Machine.can_create(self,
allowed, _message, _rights = Machine.can_create(self,
if not allowed:
return False, _("Maximum number of registered machines reached.")
if not nas_type:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment