Now that we have support for all of the fields in the user class, let's add support for users to sign up for Verge. Signing up is a bit of a complicated process, but we'll try to break it down by going step-by-step. In this section we will:
1. Define our database admin user and password so that we can create new user documents
2. Create a new signup interface to support all the fields we've added
3. Add a Bootstrap helper to make creating form inputs much easier
4. Develop a quick and dirty implementation of the signup process
5. Dig deeper into using SHA-1 encryption for our passwords
6. Refactor our signup process so that it is a bit more structured
In Chapter 3, we locked down our _users
database, so we could secure our user data, meaning that any time we deal with the _users
database, we need to provide the administrator login. For this, we'll add PHP constants for the user and the password at the top of the index.php
file, so that we can reference...