BlogEngine.Web/login.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region Using
using System;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using BlogEngine.Core;
#endregion
public partial class login : BlogEngine.Core.Web.Controls.BlogBasePage
{
/// <summary>
/// Handles the Load event of the Page control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString.ToString() == "logoff")
{
FormsAuthentication.SignOut();
if (Request.UrlReferrer != null && Request.UrlReferrer != Request.Url)
{
Response.Redirect(Request.UrlReferrer.ToString(), true);
}
else
{
Response.Redirect("login.aspx");
}
}
if (Page.User.Identity.IsAuthenticated)
{
changepassword1.Visible = true;
changepassword1.ContinueButtonClick += new EventHandler(changepassword1_ContinueButtonClick);
lsLogout.Visible = true;
Login1.Visible = false;
Page.Title = Resources.labels.changePassword;
}
else
{
Login1.LoggedIn += new EventHandler(Login1_LoggedIn);
Login1.FindControl("username").Focus();
}
}
/// <summary>
/// Handles the ContinueButtonClick event of the changepassword1 control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
void changepassword1_ContinueButtonClick(object sender, EventArgs e)
{
Response.Redirect(BlogEngine.Core.Utils.RelativeWebRoot, true);
}
/// <summary>
后面还有 10 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
