openwisp / openwisp-radius

Administration web interface and REST API for freeradius 3 build in django & python. Supports captive portal authentication, WPA Enerprise (802.1x), freeradius rlm_rest, social login, Hotspot 2.0 / 802.11u, importing users from CSV, registration of new users and more.
https://openwisp.io/docs/dev/radius/
GNU General Public License v3.0
360 stars 176 forks source link

[bug] Saving RadiusCheck/RadiusReply without an organization raises server 500 error #464

Closed pandafy closed 1 year ago

pandafy commented 1 year ago

Steps to replicate

  1. Go to http://127.0.0.1:8000/admin/openwisp_radius/radiuscheck/add/
  2. Selected "Guided (dropdown)" mode
  3. Fill out the form as follows (leaving out the organization field)

The same happens for RadiusReply.

Screenshot from 2022-12-20 18-38-50

Expected outcome

The admin form complains for empty organization field

Actual outcome

Server 500 error

Screenshot from 2022-12-20 18-39-10