Jumoo / Taskily

A Top task survey tool.
https://taskily.azurewebsites.net
2 stars 2 forks source link

Duplicate Organisations #2

Open PhilRumens opened 9 years ago

PhilRumens commented 9 years ago

On sign-up a new organisation is created even if you specify one with the exact same name as a previous sign-up

taskily

KevinJump commented 9 years ago

yeah, coming from the cloud app, you can have multiple orgs with the same name (stops someone else hijacking another account).

However i suspect for local people will only want one. It's probably more a case of only creating the organisation for the first user.

I will look at adding some better logic for a local install to the account code, but if you want a quick fix, you could change the code in the Register here https://github.com/Jumoo/Taskily/blob/master/TaskilyWeb/Controllers/AccountController.cs#L108 there is no reason in the model why an organisation can't have multiple users (just setting the org id to the same for all users.)

I'll leave this issue open until i get around to changing the code .

PhilRumens commented 9 years ago

Sure, I'll add all new users to an existing org and comment out the demo survey.