Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [NopHttpsRequirement(SslRequirement.Yes)]
- public ActionResult Login(bool? checkoutAsGuest)
- {
- var model = new LoginModel();
- model.UsernamesEnabled = _customerSettings.UsernamesEnabled;
- model.CheckoutAsGuest = checkoutAsGuest.HasValue ? checkoutAsGuest.Value : false;
- model.DisplayCaptcha = _captchaSettings.Enabled && _captchaSettings.ShowOnLoginPage;
- return View(model);
- }
- <authentication mode="Forms">
- <forms name="NOPCOMMERCE.AUTH" loginUrl="~/login" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" />
- </authentication>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement