Don't allow using passphrase with forum_auth=yes.

Fixes #7468
This commit is contained in:
Pentarctagon 2023-04-01 13:40:52 -05:00 committed by Pentarctagon
parent cf8c9ec8c7
commit ca013eaff3

View File

@ -932,6 +932,10 @@ void addon_manager::publish_addon(const addon_info& addon)
} else {
preferences::set_password(preferences::campaign_server(), cfg["author"], cfg["passphrase"]);
}
} else if(cfg["forum_auth"].to_bool()) {
// if the uploader's forum password is present in the _server.pbl
gui2::show_error_message(_("The passphrase attribute cannot be present when forum_auth is used."));
return;
}
if(!::image::exists(cfg["icon"].str())) {