I have a table which is storing login and registration info in one table.However i have 2 forms. One for login and one for registration. so i want to create 2 models, for login and registration.
I do agree that we need 2 tables, login and registration.
However in case if i want to do, is it possible to have 2 models pointing to single table?
Yes, I’ve used the default login and created user model to control creation, updating etc. Just configure default login to use your own authentication and implement sql to get user data.
ok if you have that in place create another action in your controller for you registration and handle your registion in that action simple solution. But you can still create a separate model for registration if thats what you want.