users groups group_user - The many to many relationship table. My Login view has email, password, and an optional group ID for login.
Authentication depends on user input.
When a user enters email and password only, the regular authentication. When a user enters email, password and the optional group id , then authentication on these 3 input. How to authenticate in many to many relationship? Please help.