You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
709 B

using Bwp.MainSystem;
using Bwp.Web.Pages.FrameworkPages;
using Forks.Utils;
using TSingSoft.WebPluginFramework;
using TSingSoft.WebPluginFramework.DefinedParameters;
using BWP.B3DogAuth;
namespace Bwp.Web.Pages {
class PluginClass : IPluginClass {
const string PluginName = "B3DogAuth";
public void OnInit() {
Config.GlobalVars.Add("ClientDogCheck", true);
Global.RegisterCustomPrePam(new DogAuthPlugin());
WpfLogin.RegisterPlugin(new DogAuthLoginPlugin());
var plugin = PluginManager.Current.FindByName(PluginName);
Wpf.ParameterManager.Define(plugin, Parameter.Boolean(PluginName + ".AllowUnConfigedDog", "允许不使用黑贝登录", true));
}
}
}