Small Bug: Can't register

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 14 ans
I would just like to log a small bug on anotherwise great product.

If you set
Home > Configuration > Global Settings > Other : "Allow navigation only for registered customers:" = checked

A new user is unable to havigate to the Register.aspx page.

A simple mod to BaseNopPage.cs

//it's not login/logout page
if ((!CommonHelper.GetThisPageURL(false).ToLower().Contains("/login.aspx")
    && (!CommonHelper.GetThisPageURL(false).ToLower().Contains("/logout.aspx"))
    &&(!CommonHelper.GetThisPageURL(false).ToLower().Contains("/register.aspx"))){
       string loginURL = CommonHelper.GetLoginPageURL(false);
       Response.Redirect(loginURL);
}

Seems to do the trick.

Hope this helps!
Il y a 14 ans
Thanks

https://www.nopcommerce.com/Boards/Topic.aspx?TopicID=2660
Il y a 14 ans
Where abouts in the BaseNopPage.cs do you add this piece of code???
Il y a 14 ans
The code file is located here \NopCommerceStore\Controls\BaseNopPage.cs

Look at the OnLoad Method

Nick..
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.