Code is untested. I recommend you create some unit tests to exercise the
Login class. hope this helps. Thie idea is to keep login logic separate
from the templates. Ideally this login logic would be moved to a
controller, but you gotta start somewhere. :)
Code is untested. I recommend you create some unit tests to exercise the Login class. hope this helps. Thie idea is to keep login logic separate from the templates. Ideally this login logic would be moved to a controller, but you gotta start somewhere. :)