You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
401 B
18 lines
401 B
using System;
|
|
using SiteServer.Utils;
|
|
|
|
namespace SiteServer.BackgroundPages
|
|
{
|
|
public class PageLogout : BasePage
|
|
{
|
|
protected override bool IsAccessable => true;
|
|
|
|
public void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (IsForbidden) return;
|
|
|
|
AuthRequest.AdminLogout();
|
|
PageUtils.Redirect(PageUtils.GetLoginUrl());
|
|
}
|
|
}
|
|
}
|