Developer forum

Currently discussing: Plans to implement a Consent module for GDPR compliance.

Join the discussion!

Forum » Feature requests » Multiple websites and multiple users

Multiple websites and multiple users

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

We do often have issues with multiple separate websites where the end user does not know that it is two different websites, but the same solution which shares the database.

So if we have a user with the same mail address on two website then "Forgot password" does not work as intended as Dynamicweb just sends out a password for the first user in the database.

Because of that it will be nice to have a feature in the extranet module to set a filter on any user-field when using the password recovery function.

 

Best regards, Anders

Replies

 
Adrian Ursu
Adrian Ursu
Reply

Hi Anders,

If I am not mistaken, you can already do that with a bit of tweaking on the Recovery Password Template.

See my dump.

Thank you,
Adrian

password_recovery.png
 
Anders Ebdrup
Anders Ebdrup
Reply

Thanks for quick reply, Adrian.

That is right, but we are using the mail address for the username, which cannot be deselected (I think?!)

 
Adrian Ursu
Adrian Ursu
Reply

It is true I have not tried that.

But even so, the system will look for the user having the email address that is entered in that field and a specific value in some custom field that you want to use.

I have had similar setup in some projects and I could use this functionality.

Adrian

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Hi Anders

Adrians solution should work.

We also have the feature "Include shop id in extranet log in" that can be activated in settings for users. That means that when logging in, the shopid from the current context is included to tell 2 users with same username apart. See dump 1. By enabling that feature, and giving the user a value in the field accesusershopid in the database, you can handle 2 different logins. Just added TFS#46670 that will also enable this feature for recover password from the layouttemplate (as opposed from Adrians solution that is tied to users app).

Using the new feature you can do like this:

<input type=text name=username value="user@domain.com">
<input type=hidden name=shopid value="shop1">

<input type=text name=username value="user@domain.com">
<input type=hidden name=shopid value="shop2">

and have 2 different accounts resetted.

See dump #2 for new field that will also appear on the user if that checkbox is enabled.

Out with next 8.4 hotfix

Capture.PNG Capture1.PNG
 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Nicolai,

 

Yes, I am aware of that feature, but the problem exists when we do not have shops but just regular websites.

 

Best regards, Anders

 
Nicolai Pedersen
Nicolai Pedersen
Reply

So - what? Adrians solution should do it, right - using an extra field?

I do not know how to guess the right user without data...

 

You must be logged in to post in the forum