Project

General

Profile

« Previous | Next » 

Revision d6601c8f

Added by A FL over 6 years ago

Also trim if() statement

View differences:

src/usr/local/captiveportal/index.php
188 188
			$user = $clientmac; 
189 189
			$passwd = $cpcfg['radmac_secret'];
190 190
			$context = 'radmac'; // Radius MAC authentication
191
		} elseif (!empty($_POST['auth_user2'])) { 
191
		} elseif (!empty(trim($_POST['auth_user2']))) { 
192 192
			$user = trim($_POST['auth_user2']);
193 193
			$passwd = $_POST['auth_pass2'];
194 194
			$context = 'second'; // Assume users to use the first context if auth_user2 is empty/does not exist

Also available in: Unified diff