If you create the same username and same password for “all” users, then you really only have one user. So, technically yes, you can do it this way, but it is a bad idea. It is much better to manage users individually (and allow them to maintain their own registration information – username, email, password). That makes it much easier to control access without disrupting other users.
I understand your consideration. But for my project it is necessary, that all users can login with the same username and the same password.
How can I manage this?
mic
All you really need to do for that is create a single user and give out the login credentials to your users.