Fix saving Hybrid RSA + Xauth. Fixes #7258

This commit is contained in:
jim-p 2017-02-13 12:38:00 -05:00
parent 8b5cf4332a
commit eb5bc42b04

View File

@ -245,12 +245,13 @@ if ($_POST) {
$reqdfieldsn = array(gettext("Pre-Shared Key"));
$validate_pskey = true;
break;
case "hybrid_rsa_server":
case "xauth_rsa_server":
case "rsasig":
$reqdfields = explode(" ", "caref certref");
$reqdfieldsn = array(gettext("Certificate Authority"), gettext("Certificate"));
break;
default:
/* Other types do not use this validation mechanism. */
}
if (!$pconfig['mobile']) {
$reqdfields[] = "remotegw";