public LoginResponse LoginStandalone(Login login) { TransactionSecurity.GenerateSecret(); LoginResponse resp = UserAuthentication.AuthenticateStandalone(login); if (resp != null) { return(resp); } return(new LoginResponse()); }
public void Configuration(IAppBuilder app) { //AreaRegistration.RegisterAllAreas(); //FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); //RouteConfig.RegisterRoutes(RouteTable.Routes); //BundleConfig.RegisterBundles(BundleTable.Bundles); //NotificationManager.SetConfigurationManager(new ConfigWrapper()); // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888 TransactionSecurity.GenerateSecret(); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireConn").UseConsole(); VersionHandler version = new VersionHandler(); VersionInjected.Version = version.CSETVersionString; app.UseHangfireDashboard(); app.UseHangfireServer(); //SwaggerConfig.Register(); //app.UseWebApi(WebApiConfig.Register()); }