mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-06-11 23:14:29 +02:00
50 lines
1.7 KiB
Text
50 lines
1.7 KiB
Text
<% @Page Language="C#" Debug="true" %>
|
|
|
|
<script language="C#" runat=server>
|
|
|
|
void Page_Load(object sender, EventArgs e)
|
|
{
|
|
// Deny requests with "additional path information"
|
|
if (Request.PathInfo.Length != 0)
|
|
{
|
|
Response.StatusCode = 404;
|
|
Response.End();
|
|
}
|
|
|
|
string strQueryString = "";
|
|
|
|
if ( HttpContext.Current.User.Identity.IsAuthenticated == true )
|
|
{
|
|
Response.Redirect( "default.aspx" );
|
|
}
|
|
else
|
|
{
|
|
if ( Request.QueryString != null )
|
|
{
|
|
NameValueCollection objQueryString = Request.QueryString;
|
|
|
|
if ( objQueryString["Error"] != null )
|
|
{
|
|
if ( objQueryString["Error"].Equals("WkSInUse", StringComparison.CurrentCultureIgnoreCase) )
|
|
{
|
|
strQueryString = "?Error=WkSInUse";
|
|
}
|
|
else if ( objQueryString["Error"].Equals("WkSDisconnected", StringComparison.CurrentCultureIgnoreCase) )
|
|
{
|
|
strQueryString = "?Error=WkSDisconnected";
|
|
}
|
|
else if ( objQueryString["Error"].Equals("LoginSMSFailed", StringComparison.CurrentCultureIgnoreCase) )
|
|
{
|
|
strQueryString = "?Error=LoginSMSFailed";
|
|
}
|
|
else if ( objQueryString["Error"].Equals("LoginRadiusFailed", StringComparison.CurrentCultureIgnoreCase) )
|
|
{
|
|
strQueryString = "?Error=LoginRadiusFailed";
|
|
}
|
|
}
|
|
}
|
|
Response.Redirect( "login.aspx" + strQueryString );
|
|
}
|
|
}
|
|
|
|
</script>
|