Razor - front-end login with back-end user credentials
Hi,
Umbraco 6.1.6. I know how to make login for members, but now I would like to make login for backend users, so there is no need to create members for each backend user.
I have tried to use umbraco.providers.UsersMembershipProvider(), but with no luck. ValidateUser(username, password) returns always False:
string username = Request["username"]; string password = Request["password"]; var ump = new umbraco.providers.UsersMembershipProvider(); if (ump.ValidateUser(username, password)) { ... }
Maybe am I missing something? Or this is all wrong?
Razor - front-end login with back-end user credentials
Hi,
Umbraco 6.1.6. I know how to make login for members, but now I would like to make login for backend users, so there is no need to create members for each backend user.
I have tried to use umbraco.providers.UsersMembershipProvider(), but with no luck. ValidateUser(username, password) returns always False:
string username = Request["username"];
string password = Request["password"];
var ump = new umbraco.providers.UsersMembershipProvider();
if (ump.ValidateUser(username, password))
{ ... }
Maybe am I missing something? Or this is all wrong?
Any help will be appreciated.
Kind regards
Thomas
Good place to start is:
http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-members
Member m = Member.GetMemberFromLoginNameAndPassword("username", "password");
is working on a reply...