Implementing the login view

Similar to how we went about implementing the user registration view, first and foremost we must work on the view template. The template required for the login view must possess a form that takes the username and password of the user to be logged in as input. We must also provide a button that facilitates the submission of the login form—after all, there is no point having a form if it cannot be submitted. In addition, we must have a means of alerting the user if something goes wrong with the login process, such as in a scenario where the user enters an invalid username and password combination. Lastly, we should provide a link to the account registration page for situations where the viewer of the login page does ...

Get Kotlin Programming By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.