NOTE: I have published an updated version of this video tutorial and all updated videos are available on this page: User Registration, Sign in And Token Based Authentication.
In this video #2, I am writing Swift code to make User Login and Registration page work.
Also I published my first course on Udemy “Swift programming: User sign up, sign in, password reset and more” on exactly this topic: user sign up, sign in, sign out, password reset, email activation, and Navigation drawer left side and right side sliding panels and even more.. If you are interested, please check it out and watch the promo video to learn about the content of the course: https://www.udemy.com/swift-developer-cookies-user-sign-up-login-password-reset/