Project

General

Profile

« Previous | Next » 

Revision 22e32874

Added by A FL over 6 years ago

generate a flag even if trying to perform RADIUS MAC authentication on a non-RADIUS server.

View differences:

src/etc/inc/captiveportal.inc
1666 1666
					if ($context === 'radmac' && $login == mac_format($clientmac) || $authcfg['type'] === 'none' && empty($login)) {
1667 1667
						$login = "unauthenticated";
1668 1668
					}
1669
					// We determine a flag
1670
					if ($result === true) {
1671
						$val = 3;
1672
					} elseif ($result === false && !empty($attributes['reply_message'])) {
1673
						$val = 2;
1674
						$msg = $attributes['reply_message'];
1675
					} elseif ($result === false) {
1676
						$val = 1;
1677
					} elseif ($result === null) {
1678
						$val = 0;
1679
					}
1669
				}
1670
				// We determine a flag
1671
				if ($result === true) {
1672
					$val = 3;
1673
				} elseif ($result === false && !empty($attributes['reply_message'])) {
1674
					$val = 2;
1675
					$msg = $attributes['reply_message'];
1676
				} elseif ($result === false) {
1677
					$val = 1;
1678
				} elseif ($result === null) {
1679
					$val = 0;
1680 1680
				}
1681 1681

  
1682 1682
				if ($val >= $auth_val) {

Also available in: Unified diff