Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'm trying to make a login where both members and users can login.
Is there a easy way to that?
Right now i'm using the partial made by umbraco - and users can't login
@{ var loginModel = new LoginModel(); Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); Html.RequiresJs("/umbraco_client/ui/jquery.js"); Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.min.js"); Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js"); } @using (Html.BeginUmbracoForm<UmbLoginController>("HandleLogin")) { <fieldset> <legend>Login</legend> @Html.ValidationSummary("loginModel", true) @Html.LabelFor(m => loginModel.Username) @Html.TextBoxFor(m => loginModel.Username) @Html.ValidationMessageFor(m => loginModel.Username) <br /> @Html.LabelFor(m => loginModel.Password) @Html.PasswordFor(m => loginModel.Password) @Html.ValidationMessageFor(m => loginModel.Password) <br /> <button>Login</button> </fieldset>
}
Hi Amalie,
This partial works only for members. If you want to create authentication controller for users and members, you have to make custom controller and pass data to it.
Thanks, Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Use member login for member and users
Hi
I'm trying to make a login where both members and users can login.
Is there a easy way to that?
Right now i'm using the partial made by umbraco - and users can't login
}
Hi Amalie,
This partial works only for members. If you want to create authentication controller for users and members, you have to make custom controller and pass data to it.
Thanks, Alex
is working on a reply...