From: jdegraeve Date: Thu, 20 Apr 2006 08:44:28 +0000 (+0000) Subject: add fix for cp_unlock when authentication fails. X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd96cc5387e0c9b075661430cb12acb9f860077;p=m0n0chwall.git add fix for cp_unlock when authentication fails. git-svn-id: https://svn.m0n0.ch/wall/trunk@132 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/phpconf/inc/captiveportal.inc b/phpconf/inc/captiveportal.inc index 3b12fb6..bb83a23 100644 --- a/phpconf/inc/captiveportal.inc +++ b/phpconf/inc/captiveportal.inc @@ -821,6 +821,9 @@ function radius($username,$password,$clientip,$clientmac,$type) { captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED"); } } + else { + captiveportal_unlock(); + } return $auth_list;