Esempio n. 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// AddAuthentication adds a new Authentication System to the Data Store.
 /// </summary>
 /// <param name="authSystem">The new Authentication System to add</param>
 /// <history>
 ///     [cnurse]	07/10/2007  Created
 /// </history>
 /// -----------------------------------------------------------------------------
 public static int AddAuthentication(AuthenticationInfo authSystem)
 {
     EventLogController.Instance.AddLog(authSystem, PortalController.Instance.GetCurrentPortalSettings(), UserController.Instance.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.AUTHENTICATION_CREATED);
     return(provider.AddAuthentication(authSystem.PackageID,
                                       authSystem.AuthenticationType,
                                       authSystem.IsEnabled,
                                       authSystem.SettingsControlSrc,
                                       authSystem.LoginControlSrc,
                                       authSystem.LogoffControlSrc,
                                       UserController.Instance.GetCurrentUserInfo().UserID));
 }