I know its dump question, using login form and insert user in database.
Actually, I have an API that includes users of company/organization and these users already have registered on other applications. So, using such API I can get user info using username and password.
Of course, we need to logged in users directly (without registration) who already have account on other applications.
For logging in, I need to, first, insert the user info in data (before insertion, I can fetch username and password from API) so user can get in the site as logged in user.
- After fetching from API, how to create user in the database with username and password field only?
- It should be done without email info.