Use this project to deploy your own customized login page.
Customize the custom login page UI
- Open the file IPSLogin.aspx and change the markup to make static customizations
- OPen the file IPSLogin.cs and add your customizations to the method CustomizeLoginPageUI. Example:
// Set welcome message
this.WelcomeMessage.Text = IPSResxHelper.GetResourceValue(Constants.Resource_File_Name, Constants.Resource_WelcomeMsg_Key, SPContext.Current.Web.Language);
Add additional steps to the logging proccess:
- Execute optional tasks: modify or overrride the method _ExecuteOptionalTasks as your own requirements
- Execute required tasks: modify the method ExecuteRequiredTasks as your own requirements. Example:
private void ExecuteRequiredTasks()
{
LogProvider.WriteLogEntry(IPS.SP2013.DiagnosticsProvider.Constants.CategoryNames.Infomation,
"IPSLogin.ExecuteRequiredTasks(): Start");
try
{
this.AddCurrentSiteCookie();
}
catch (Exception ex)
{
LogProvider.WriteLogEntry(IPS.SP2013.DiagnosticsProvider.Constants.CategoryNames.Error,
"IPSLogin.ExecuteRequiredTasks(): " + ex.Message);
return;
}
LogProvider.WriteLogEntry(IPS.SP2013.DiagnosticsProvider.Constants.CategoryNames.Success,
"IPSLogin.ExecuteRequiredTasks(): End");
}