Developer forum

Forum » Ecommerce - Standard features » Multishop and multiple users with same ID

Multishop and multiple users with same ID

Martin Grønbekk Moen
Reply

We have set up two websites (Website A and Website B).

Attached to each website we have setup up one shop for each (Website A/Shop 1 and Website B/Shop 2).
Both websites are connected with their shops.

Then we have two users (Username/Shop 1 and Username/Shop 2).
Both users use the same username and password, but are conencted to each of their shops using the shop ID.
http://screencast.com/t/gOKSFUyTjK

We have also enabled this setting in administration.
http://screencast.com/t/KJOH74xM

The problem is that we can only log into Website A, and not Website B.
Have we missed out on some configuration steps? Should this scenario be working in DW?
 


Replies

 
Nicolai Høeg Pedersen
Reply

It is a really weird scenario, and we support it... :-).

It could be that you submit the login form to a page id not in the right website context. i.e. if you submit the login form to "Default.aspx" - it will take the first page of the first website, and use the context of that website.

So make sure you submit the login to a page id in the right website context.

BR Nicolai

 
Dmitrij Jazel
Reply

Hi Nicolai,

Well, we do include now PageID now, if that was what you meant here?

Here is a snippet of how this particular form looks like:

<form onsubmit="return checkform();" id="login-form" method="POST" name="ExtUserForm">
    <!--PageID is set correctly-->
    <input type="hidden" name="ID" value="7" id="PageID">
    <input type="hidden" name="ForgotPasswordMailTemplate" value="ForgotPasswordMailTemplate.html">
    <input type="hidden" name="ForgotPasswordMailSubject" value="Innloggingsinformasjon">
                    
    <input id="Text1" name="username" placeholder="Kundenummer" class="loginField" type="text" value="">
    <input type="password" id="password1" name="password" placeholder="Passord" class="txtPassword loginField"  value="">
                       
    <input type="submit" id="Submit1" name="submit" value="Loggin kunde" class="loginButton">                              
</form>
 
Nicolai Høeg Pedersen
Reply

Hi Dmitrij

Try checking in Fiddler or similar, what happens when you submit this.

You do not have an action on the form, so it will take the URL of the page, i.e. Default.aspx?ID=123 and you add another ID in the hidden field. That gives you 2 ID's in the request collection, which is going to be ?ID=7,123 - and that is not a valid page, and hence the Default.aspx....

So either set action to "Default.aspx" or remove the ID from the hidden field.

Nicolai

 
Dmitrij Jazel
Reply

Ok, so I added action attribute "/Default.aspx" with hidden field for ID - that didn't help.

Than I tryed something like this:

<form onsubmit="return checkform();" id="login-form" method="POST" name="ExtUserForm" action="/Default.aspx?id=7">

Didn't work either.

This is a bit strange, is it?

http://screencast.com/t/d8b0ePPe

and

http://screencast.com/t/2XoCi5MeC8

 
Nicolai Høeg Pedersen
Reply

Hi Dmitrij

It is not a table, but a column on AccessUser table.

My guess is, that your data is somehow wrong. Make sure you ONLY have 2 users with matching usernames, password and shop ids. Make sure your submit is ok, and make sure your websites have the right ids set on the website properties (Area table, column areaecomshopid)

 
Martin Grønbekk Moen
Reply

Hi Nicolai

The problem now looks like we are logged in as two users.

We have this "Extranet module" to display user information.
http://screencast.com/t/5X3crghH3cM

When I log in as User A, I actually get information about User B.
But the strange thing is that if I turn on DwTemplateTags it says that "Global:Extranet.User" is User A.

The same thing goes for the "Checkout module", it thinks im User B, but "Global:Extranet.User" says im User A.
It looks like im logged in in two levels, how can that be?

 
Martin Grønbekk Moen
Reply

Please, could anyone look into this? We are still having trouble with this.

 
Nicolai Høeg Pedersen
Reply

Hi Martin

You have probably set up imporsonation on the user.

Need a link to the solution or you have to create a case.

BR Nicolai

 
Martin Grønbekk Moen
Reply

Hi Nicolai

No, impersonation is not active on this customer.
We created a case for it 111561 :)

/Martin

 

You must be logged in to post in the forum