|
|
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));
|
|
}
|
|
|
|
}
|
|
}
|