Fix return value when a mac address is already registered
This commit is contained in:
parent
8b74ba2a79
commit
7a789802d0
1 changed files with 1 additions and 5 deletions
6
auth.py
6
auth.py
|
@ -272,11 +272,7 @@ def check_user_machine_and_register(nas_type, user, user_interface, nas_id, user
|
|||
|
||||
if user_interface:
|
||||
if user_interface["user_pk"] != user["pk"]:
|
||||
return (
|
||||
False,
|
||||
"Mac address registered on another user account",
|
||||
"",
|
||||
)
|
||||
return (False, "Mac address registered on another user account")
|
||||
|
||||
elif not user_interface["active"]:
|
||||
return (False, "Interface/Machine disabled")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue