What to do with the same methods MVC?

New. Write a PHP project without MVC frameworks.
Suppose there are two controllers: registration and login. Both have completely the same method to check the password (which is simple the regular season, for example).
The idea of this method should be put somewhere in one place? Where? Or is there and leave?
Thank you)
April 3rd 20 at 18:25
2 answers
April 3rd 20 at 18:27
April 3rd 20 at 18:29
In service

Find more questions by tags PHP