
Mariano
Members-
Posts
24 -
Joined
-
Last visited
About Mariano
- Birthday 01/17/1985
Profile Information
-
Gender
Male
-
Location
Argentina
Mariano's Achievements
-
Hi! Long time no see. I was just visiting here, after 6 years, is there any plan to resolve an inconsistency with the "multi-company" functionality that has always prevented the use of blesta until now. The facts: - We, as a company, have 2 business units ("Business A", and "Business B"), which offer different services, managed by the same team, but facing the clients, they are two separate businesses. - We, as a company, add one company for each business unit to the multi-company installation of blesta as a company. - We, as a company, have the need and requirement that clients subscribe to the service, using their email, therefore, we configure email as a username in blesta, which is a Blesta functionality (the email is the identity of our clients for us, they must log in with their email, not with any chosen username, not negotiable). The problem: There is a person in the world (for the purpose of the example), whose name is Jose and whose email address is jose(at)gmail.com. That person finds "Business A" and wants to sign up for the service. He registers using his email address (for his user) - his only email address, the one he uses for everything - and signs up. That person starts using the services of "Business A". Some time later, that person finds "Business B" and is interested in the service. He tries to register using his email address (for his user), and he can't! The system tells him that the address is already in use. The first thing that person thinks is: how strange, I've never used a service from "Business B". Likewise, he thinks maybe I did at some point and can't remember. Then he tries to recover the password/access to the account with his email address (the system told him that the email address is already in use, and he, being the owner of that email, could recover access). And he can't either. He can't use his own email. There is no way to register in "Business B" with his email; only because he is registered in "Business A" with that email, and they are supposed to be separate companies from the client's point of view. It is inconsistent. I have already opened the topic a few times in previous years, we have already talked about Issue CORE-5103 (which does not solve the issue, it would be a step forward, but it was never implemented or progress was made on it). Also, it is not an absolute necessity, because we are managing it with a basic home-made solution, but if by chance it is understood that it is a problem, which affects the multi-company option, taking into consideration and I have not become very old, I would like to be able to implement the system that I bought with great excitement many years ago for that purpose. Thank you! Regards.
-
Hello, I wanted to share what i did to the souce code of the core to get some advice if there something can go wrong (the logic works, but in case I am missing something) and if there could be a better way to implement it or some idea so I don't need to change/check so much files after updates. It is for multi-company. The goal of the changes is that: a staff member, a client of company A and a client of a company B can use (or not) the same username (is not the same account, just the same username, these are independent users). What i did: Step 1: split the Users model functions in two, same logic, only changes the filter: getByUsername -> getByUsernameOnlyClient / getByUsernameOnlyStaff -> It filters only users in one company (current) that are client / filters only users that are staff validateUniqueUser -> validateUniqueUserOnlyClient and validateUniqueUserOnlyStaff -> Same as before Step 2: split the rest of the Users model functions in two as before (validateUser, add, getRules, ...), to use the new previous functions (same logic, only changed wich function is called). Step 3: updated all the controllers to use the "OnlyClient" functions when is a client action (login, register, recovery, create, update, ...) and "OnlyStaff" functions when is a staff action. Step 4: removed the username unique key in the database. I tried to keep the old functions and not just edit these ones to keep better track of changes. Any idea or recommendation is welcome. Thank you in advance, regards.
-
Same username across companies in Multi-company
Mariano replied to Mariano's topic in Feature Requests
Hello Paul, thank you for the reply. The problem about it is that CORE-3942 is too big compared with my topic. Plus to it the multi-company part is potential, is not the main subject of these task. The only issue i see is what i was trying to explain: if i have 2 (or more) companies (supposed to be diferent business units, is why there are separated systems, if they werent i would use only 1 company) and using email as username (customers uses email for login, as they do now) a pontential customer can only signup in 1 company using it's email. Additionally it can cause confusion as to why he can't use his own email account or recovery his access (because it tells him it's already in use) if he never signed up for that service before (in the other businesses after the 1st in which it is registered). My stuff is not about sharing login or similar, managing multiple accounts, same credentials for diferent companies, is just what I try to remark. Except it fixes the issue. I think customers credentials should be associated with a single company, so the username user1 (or the username email1@example.com) could exist in more than one company or not, each one with its password, regardless of who uses it, and not be related to each other, be independent. Because from their point of view, they are separate services (or companies, or businesses). In short, limit the availability of usernames, and access in each company independently. If this is what we are talking about, of course i would consider sponsoring it (I should see how that works). But if this is not what we are talking about it is not going to solve the problem I see. For me it is the bug of the multi-company system and maybe nobody uses it or found it but it works how I say now and I think is not ok. Anyway, I do not demand this. Maybe at some point the team can see it and agree . Thank you again, regards! -
Same username across companies in Multi-company
Mariano replied to Mariano's topic in Feature Requests
Hello, I was just visting here after 1 year from the last visit and wondering if there is some plan to fix the username problem betwen companies in multi-company. Maybe one day i will be able to start using Blesta and use the licenses I got ? Regards! -
Same username across companies in Multi-company
Mariano replied to Mariano's topic in Feature Requests
I think these is the correct way to do this. Regards. -
Same username across companies in Multi-company
Mariano replied to Mariano's topic in Feature Requests
Thank you Paul. I missed that task, i always was searching "user" in the task title. Looks good. Lets see if it can help fix this problem when is implemented. Regards. -
Mariano reacted to a post in a topic: Same username across companies in Multi-company
-
Hello, I open this thread to see if after 2.5 years there are some plans to solve this. The scenary: - I have Blesta multi-company with 2 companies: "Company A" and "Company B". There are diferent brands that offers diferent services. - Both companies have set "use email as username". - John wants a service that is offered by "Company A". - John, register in "Company A" using his email, "john@example.com". He starts using his services. - Then John, finds a service he likes in "Company B". - So John, try to register in "Company B" to buy the service using his email, "john@example.com". - The register system of "Company B" says to John that can't use that email, because it is in use. - So, John thinks: ohh, maybe I have an account in "Company B", so I will try to restore my password for login. - Then John discovers he can't restore his password, he can't use his email, he dont understand why because it is his email and is confused. Sorry for the imaginary story, I try to explain the problem in the most clear way possible for me. No plans to do something about it? I never was able to finish implementing Blesta because of this. I the real life we have situations like this. I want to start using it, but with this i am not sure we can. Is the only thing I see as a problem, in multi-company. If they are diferent companies, users must be able to use his emails in any of them. I hope is clear my situation and I hope someone can see this problem too! Thank you, regards!
-
Paul reacted to a post in a topic: Universal Module vs custom module opinions
-
Mariano reacted to a post in a topic: Universal Module vs custom module opinions
-
Thank you for your reply. Useful tips. I thought that too. I will go for dedicated modules. Regards.
-
Hello, I wanted to know what are your toughts in a situation like mine. I am having a few web apps (SaaS) and the subscription is managed from Blesta. I have only 1 set right now, and I manage packages and actions (create, upgrade, suspend) from Blesta using Universal Module (that calls a bridge in the application server). I am going to add the other apps to Blesta but i have a doubt. Which one is a best practice for this? Add all the applications to the Universal Module or create a custom module for each application? In terms of flexibility in the future, better organization, prevent future problems, etc. What are your thoughts about it? Another detail, is that probably (if at some point some stuff in the multi-company functionality changes) I would split the apps in diferent companies, and the universal module is too attached to the company for what i see. Thank you, regards.
-
It is not working on my side. Maybe do you have some additional plugin installed (like the blesta-addons one)? Please consider it. I bet it is easy to implement ?. I correct my first message, i see an error now. Where i said: "currency=Spanish¤cy=3", I meant: "language=Spanish¤cy=3" Regards.
-
Hello, thank you. I have searched in forums, all posts i have seen send OPs to the blesta addons plugin. I was seraching if there is some included feature or some tip about how to implement this because that part of code isn't unencrypted (to check how combobox that change that works). If there is some post that has a closer solution I will be glad if you point it! Thank you, i have seen your modules. But i don't understand at 100% the subscription model and is not compatible with multi-company (you need a suscription for every company). So for now is not an option to me at this moment. Maybe in the near future! Regards!
-
Hello, i wanted to see if there is some way to set the language and currency in the URL (GET parameter). Right now, I have a multilanguage and multicurrency Website, that links to WHMCS. When the user goes to order, login into the account, register, or anything related to the billing system, i send them to (as example): domain.com/cart.php?currency=Spanish¤cy=3 (so he see the billing system in spanish and prices in the particular currency. I can't find how to implement this in Blesta. It doesn't support a similar functionality. I was checking the source code too (for see how language works), and it looks like the core language part for example, is inside the 1% encrypted code (correct me if i am wrong), or i am not finding it. Is there some way to implement this? Thank you, regards.
-
Multi-Company: Are user registrations shared or completey separate?
Mariano replied to blestatester's question in Support
I don't think so. Of course, is my point of view, i don't think because ("taking in account we use email as username", from the staff perspective): - In our case, honestly, never paid attention to usernames. We identify customers by number or name. Who minds the username is the customer that needs it to login. - Rignt now in Blesta multi-company everything is separated. So staff needs to go to inside the admin of company A for see the company A tickets, invoices, services... so the customer is the customer inside company A, regardless of the username. In change from a customer perspective is more confusing: - He signups in company A using his email. He doesn't mind his name and customer number. But he needs to remember the email (username) for login or restore his password. - He wants to signup now in company B, but is says his username (email) is in use or exists (because exsists in company A). So he tries to restore the password and the discover the username doesn't exists. So, he asks you if the account exists or not, why can't use his email if never signed up before in company B. This point doesn't make any sense. If happens what you say, that someone signed up in company A using the username "example" (again, in our case is the email) and the someone signs in company B using the username "example", the second one did come first in company B and wins. In our case as force email as username, who owns the email account owns the companies accounts because they can get access to it. So if you use someone else email, you loose the account at that moment. (an email verification would make it perfect). Right now how it is, you have to create a new user anyway for evey company. Even if the username "exists or not" in that company. With this change at least you can use the same username if doesn't exists in that company. You go from nothing so something. Anyway, is complex. Not all business runs in the same way. But i am convinced this change that I propose is the right solution from how it works now, fix the no sense error about the pseudo existence of the username, and make the customer life easier. All the rest can stay like it is. Regards.- 36 replies
-
- multi-company
- user registration
-
(and 1 more)
Tagged with:
-
Multi-Company: Are user registrations shared or completey separate?
Mariano replied to blestatester's question in Support
Hello Paul, Thank you for your answer. Something similar to option 2 is what I mean. The ablility to create a new user for each company using the same username (can use diferent passwords). Not a switch between companies or something like that. Just to be able to use the same username in any of the companies. Not related profiles. Just individual accounts in each company (just in case someone tries to use the same username in another service). What i think, If someone registers using the same username in company A and company B, needs to login in company A to access the services in company A, or login in company B to access the services in company B. Is more, if someone uses the username "example" in company A, maybe another person uses the username "example" in company B. So they are diferent person that don't have to share anything. To sum up, the same username (same person or not, same password or not) can exist in all companies. Access every company separated. Profiles are not related each one. Not switch betwen companies. All this for the customer users. Staff users work perfect just as they work. Thank you. Regards.- 36 replies
-
- multi-company
- user registration
-
(and 1 more)
Tagged with:
-
Multi-Company: Are user registrations shared or completey separate?
Mariano replied to blestatester's question in Support
I have the same problem here. And i was asked why the can't login with the same email in 2 services (luckily people known for now). And idk if is good to modify the core for this, because the updates. I pray every day to see that change in development roadmap ?. @Paul is there not way to take a look into this and add this feature to the core? (allow customers to use same email as username in 2 companies in a multi-company setup). Regards!- 36 replies
-
- multi-company
- user registration
-
(and 1 more)
Tagged with: