2
Well, I have my application and every client will have his own database. As each customer will have their database, they will also have their user table for login.
So I have
Bancoempresa1 - User/Password: [email protected]/123
Bancoempresa2 - User/Password: [email protected]/123
So, I have my login screen with the following fields:
Login/Email: Password:
How will I know how to direct the correct bank to my user? that the user Vanessa type, go to their respective bank (Bancoempresa1) and not fall into another bank?
[Edit] Technology used: Asp.net MVC + Entity Framework
[Edit2] Each client will have its own database and these will be hosted on my server and in order to access the application, they must go through a single login screen that will also be on my server. Ex: www.sitedoRod.com/apps/login
and then direct each user to their respective application and database.
Asp.net MVC with Entity Framework is what I’m using
– Rod
As I spoke to Vinicius below, at what point would I save in this table "login"? When each customer is registering a user for their system? And also in terms of security, I would have to keep this bank of mine open for all my clients?
– Rod
Rod, do you intend to host all databases on one of your servers and your client will access your server? Or do you intend to have a single database that will serve for all clients? keep that database != of DATABASE SERVER
– Tafarel Chicotti
On your server, you will have a single database, or each client will have a database on its server?
– Tafarel Chicotti
My server, sql server. And each client will have its database
– Rod
Each Client will have its application on its server or on its server, or will have something like
www.sitedoRod.com/login
for the customer to access his application?– Tafarel Chicotti
will be in my, as you mentioned www.sitedorod.com/login is only login screen for all my customers
– Rod
Then you will have to do the Master table, and at login time as quoted by @Vinicius also register in this table Master the User/Email data,Password,Bank and store this Bank information always in a Session for example and use it in all your queries to build the queryString of the connection with the bank
– Tafarel Chicotti
I thought to leave the login, and the bank path, when checking the login, connect to the bank and check the password there...what do you think? then I do not leave his password in this table "master"
– Rod
It may be, but here comes another problem that is the possibility of duplicate logins for example
username: joao.joazinho banco:emp1
andusername:joao.joaozinho banco:emp2
and be two distinct users... hence you will have to really use something unique to ensure that this does not occur– Tafarel Chicotti
but what if it’s by email?
– Rod
email can be used, and even avoids this kind of problem, I just wanted to highlight something that could cause trouble if I wanted one
username
in place of aemail
– Tafarel Chicotti
I get it, I think it was valid your answer, now I’ll have to test and see if there will be errors in this, rsrrs, thank you
– Rod