I set some node to request role based access credential, and I built a login page to accompany with the settings.
My question is if login fails is there a way I can simply throw 401 code from that login page I built without displaying anything or use setting in web.config <formsname="yourAuthCookie"loginUrl="login.aspx"protection="All"path="/" />
Public Access (form auth) and 401 code
I set some node to request role based access credential, and I built a login page to accompany with the settings.
My question is if login fails is there a way I can simply throw 401 code from that login page I built without displaying anything or use setting in web.config <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
Currently if my code in my login page is
Then Umbraco tries to use /login.aspx as set in config file
Or if my code is
It just show the same custom login page again.
is working on a reply...