﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dolstagis.Web.Lifecycle
{
    public class LoginHandler : ILoginHandler
    {
        public object GetLogin(IHttpContext context)
        {
            return new RedirectResult("/login", Status.SeeOther);
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dolstagis.Web.Lifecycle
{
    public class LoginHandler : ILoginHandler
    {
        public string LoginUrl { get; set; }

        public LoginHandler()
        {
            LoginUrl = "~/login";
        }

        public object GetLogin(IHttpContext context)
        {
            return new RedirectResult(LoginUrl, Status.SeeOther);
        }
    }
}

Make the login URL configurable.
Make the login URL configurable.

--HG--
extra : amend_source : da22b9dee6b940c9b977e5732cbf5313991273b4
