Merge branch 'fix-existing-mac' into 'master'
Fix return value when a mac address is already registered See merge request re2o/re2o-radius!3
This commit is contained in:
commit
cafcd73735
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:
|
||||||
if user_interface["user_pk"] != user["pk"]:
|
if user_interface["user_pk"] != user["pk"]:
|
||||||
return (
|
return (False, "Mac address registered on another user account")
|
||||||
False,
|
|
||||||
"Mac address registered on another user account",
|
|
||||||
"",
|
|
||||||
)
|
|
||||||
|
|
||||||
elif not user_interface["active"]:
|
elif not user_interface["active"]:
|
||||||
return (False, "Interface/Machine disabled")
|
return (False, "Interface/Machine disabled")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue